/* ===========================
   TERMS OF SERVICE CSS
   (Extends base theme)
   =========================== */

/* Import base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #10b981;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --accent: #8b5cf6;
    --navbar-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border: #374151;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    --navbar-bg: #111827;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* ================================
   HERO SECTION
   ================================ */

.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   MAIN CONTAINER
   ================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.last-updated {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px solid var(--border);
}

.last-updated p {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.last-updated .disclaimer {
    font-style: italic;
    color: var(--primary);
    font-weight: 600;
}

.last-updated i {
    color: var(--primary);
    margin-right: 8px;
}

/* ================================
   TABLE OF CONTENTS
   ================================ */

.toc-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border);
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.toc-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.toc-links a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    display: block;
}

.toc-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(5px);
}

/* ================================
   TERMS SECTIONS
   ================================ */

.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.terms-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 80px;
}

.terms-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow);
}

.terms-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: 700;
}

.terms-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.terms-section ul {
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.terms-section li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    position: relative;
}

.terms-section li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* ================================
   USE GRID
   ================================ */

.use-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.use-card {
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.use-card.prohibited {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-color: #ef4444;
}

.use-card.permitted {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: #10b981;
}

.use-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.use-card.prohibited i {
    color: #ef4444;
}

.use-card.permitted i {
    color: #10b981;
}

.use-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.use-card ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.use-card li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ================================
   INTELLECTUAL PROPERTY GRID
   ================================ */

.ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.ip-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.ip-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 6px 20px var(--shadow);
}

.ip-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.ip-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.ip-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ================================
   DISCLAIMER CARD
   ================================ */

.disclaimer-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #f59e0b;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.disclaimer-card i {
    font-size: 2.5rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.disclaimer-card p {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.disclaimer-card strong {
    color: #f59e0b;
}

/* ================================
   CONTACT DETAILS
   ================================ */

.contact-details {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 2px solid var(--border);
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.contact-details i {
    color: var(--primary);
    width: 24px;
}

.contact-details strong {
    min-width: 120px;
    color: var(--text-primary);
}

/* ================================
   AGREEMENT BOX (SLEEK VERSION)
   ================================ */

.agreement-box {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.08), 
        rgba(16, 185, 129, 0.08));
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-top: 4rem;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.agreement-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary), 
        var(--secondary));
    border-radius: 20px 20px 0 0;
}

.agreement-content i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.2));
}

.agreement-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.agreement-content p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Sleek Button Container */
.agreement-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

/* Sleek Primary Button */
.agree-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 240px;
    justify-content: center;
    height: 52px; /* Fixed height for perfect alignment */
}

.agree-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
}

.agree-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.agree-btn:hover::before {
    left: 100%;
}

.agree-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.agree-btn:hover i {
    transform: scale(1.1);
    transform: translateY(11px); /* Adjust 1px up or down as needed */
}

/* Sleek Secondary Button */
.privacy-link {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    min-width: 240px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 52px; /* Fixed height for perfect alignment */
    box-sizing: border-box; /* Ensures padding is included in height */
}

.privacy-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05), 
        rgba(16, 185, 129, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privacy-link:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow);
    color: var(--primary);
}

.privacy-link:hover::before {
    opacity: 1;
}

.privacy-link:active {
    transform: translateY(-1px);
}


.privacy-link:hover i {
    transform: translateX(3px);
    transform: translateY(11px); /* Adjust 1px up or down as needed */

}

/* SIMPLE FIX: Align icons and text perfectly */
.agree-btn i,
.privacy-link i {
        /* Add this one line: */
    transform: translateY(11px); /* Adjust 1px up or down as needed */
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    top: 0; /* Reset any top positioning */
}

/* Reset any conflicting alignments */
.agree-btn,
.privacy-link {
    display: inline-flex;
    align-items: center; /* This centers vertically */
    justify-content: center;
}

/* Force all content to align properly */
.agree-btn > *,
.privacy-link > * {
    vertical-align: middle;
    line-height: 1;
}

/* Disabled state for agreed button */
.agree-btn:disabled {
    background: linear-gradient(135deg, #10b981, #059669);
    cursor: default;
    transform: none !important;
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.agree-btn:disabled:hover::before {
    left: -100%;
}

.agree-btn:disabled i {
    animation: pulse 2s infinite;
}

.fas fa-check-circle {
    transform: translateY(11px);
}



@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .agreement-box {
        padding: 2rem 1.5rem;
    }
    
    .agreement-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .agree-btn,
    .privacy-link {
        width: 100%;
        min-width: unset;
        padding: 1rem 2rem;
        height: 48px; /* Slightly smaller on mobile */
        justify-content: center;
    }
    
    .agree-btn i,
    .privacy-link i {
        width: 18px; /* Slightly smaller icon width on mobile */
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .agreement-content h3 {
        font-size: 1.3rem;
    }
    
    .agreement-content p {
        font-size: 1rem;
    }
    
    .agree-btn,
    .privacy-link {
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
        height: 46px;
    }
    
    .agree-btn i,
    .privacy-link i {
        width: 16px;
        font-size: 0.95rem;
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .terms-section {
        padding: 1.5rem;
    }

    .toc-links {
        grid-template-columns: 1fr;
    }

    .use-grid,
    .ip-grid {
        grid-template-columns: 1fr;
    }

    .agreement-box {
        padding: 2rem 1rem;
    }

    .agreement-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .disclaimer-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}