/* ========================================
   Terms & Conditions Page
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0d0d1a;
    color: #d0d0d8;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.terms-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Header ---- */
.terms-header {
    padding: 20px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- Light Theme Support ---- */
body.theme-light {
    background: #f8fafc;
    color: #334155;
}

body.theme-light .terms-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

body.theme-light .terms-logo {
    color: #1e293b;
}

body.theme-light .terms-content h1 {
    color: #1e293b;
}

body.theme-light .terms-content h2 {
    color: #334155;
}

body.theme-light .terms-content strong {
    color: #1e293b;
}

body.theme-light .contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

body.theme-light .terms-footer {
    border-top: 1px solid #e2e8f0;
}

.terms-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 700;
    font-size: 1.15rem;
}

.terms-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.terms-theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #888;
    transition: color 0.2s;
}

.terms-theme-toggle:hover {
    color: #b0b0bb;
}

body.theme-light .terms-theme-toggle {
    color: #64748b;
}

body.theme-light .terms-theme-toggle:hover {
    color: #334155;
}

/* ---- Content ---- */
.terms-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 28px 64px;
    flex: 1;
}

.terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.terms-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.terms-updated {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 40px;
}

/* ---- Sections ---- */
.terms-content section {
    margin-bottom: 36px;
}

.terms-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.terms-content p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.terms-content ul {
    margin: 8px 0 10px 20px;
    font-size: 0.95rem;
}

.terms-content li {
    margin-bottom: 6px;
    padding-left: 4px;
}

.terms-content li::marker {
    color: #6366f1;
}

.terms-content strong {
    color: #e0e0e8;
}

/* ---- Links ---- */
.terms-link {
    color: #818cf8;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(129, 140, 248, 0.3);
    transition: border-color 0.2s;
}

.terms-link:hover {
    border-color: #818cf8;
}

/* ---- Contact Card ---- */
.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 8px;
}

.contact-card p {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card i {
    color: #6366f1;
    width: 18px;
    text-align: center;
    margin-right: 4px;
}

/* ---- Footer ---- */
.terms-footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: #555;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .terms-content {
        padding: 32px 18px 48px;
    }

    .terms-content h1 {
        font-size: 1.7rem;
    }
}
