/* ============================================================
   Terms & Conditions Page Styles
   Applies on top of main.css
   ============================================================ */

/* === Terms Hero === */
.terms-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a192f 60%, #112240 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.terms-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(56, 104, 160, 0.14) 0%, transparent 70%);
    pointer-events: none;
}
.terms-hero-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #7899b8;
    margin-bottom: 20px;
    font-weight: 400;
}
.terms-hero-title {
    font-size: 52px;
    font-weight: 100;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}
.terms-hero-desc {
    font-size: 16px;
    color: #a0b4c8;
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 28px;
    font-weight: 300;
}
.terms-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
}
.terms-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.terms-hero-meta i {
    color: #7899b8;
    font-size: 12px;
}

/* === Main layout === */
.terms-main {
    padding: 56px 0 80px;
    background: var(--bg-light);
}
.terms-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* === Table of contents === */
.terms-toc {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: #fff;
    border: 1px solid #e5e8ef;
    padding: 24px 20px;
}
.terms-toc-title {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light-gray);
    margin-bottom: 16px;
    font-weight: 400;
}
.terms-toc nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.terms-toc a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-gray);
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.45;
}
.terms-toc a:hover {
    color: var(--brand-blue);
    background: #f5f8fc;
}
.terms-toc a.is-active {
    color: var(--brand-blue);
    border-left-color: var(--brand-blue);
    background: #f0f5fa;
    font-weight: 500;
}

/* === Content card === */
.terms-card {
    background: #fff;
    border: 1px solid #e5e8ef;
    padding: 44px 48px 52px;
}

.terms-body {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
    color: var(--text-gray);
}
.terms-body h2 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    margin: 48px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e8ef;
    scroll-margin-top: calc(var(--header-height) + 24px);
}
.terms-body h2:first-child {
    margin-top: 0;
}
.terms-body h3 {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-dark);
    margin: 28px 0 12px;
    scroll-margin-top: calc(var(--header-height) + 24px);
}
.terms-body p {
    margin-bottom: 18px;
}
.terms-body ul,
.terms-body ol {
    padding-left: 22px;
    margin-bottom: 18px;
    list-style: disc;
}
.terms-body ol {
    list-style: decimal;
}
.terms-body li {
    margin-bottom: 8px;
    line-height: 1.8;
}
.terms-body a {
    color: var(--brand-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.terms-body a:hover {
    color: var(--brand-blue-hover);
}
.terms-body strong {
    font-weight: 500;
    color: var(--text-dark);
}

.terms-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    margin-bottom: 28px;
    background: #f0f5fa;
    border: 1px solid #d4e3f0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
}
.terms-notice i {
    color: var(--brand-blue);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* === Bottom CTA === */
.terms-cta {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #112240 100%);
    padding: 64px 0;
}
.terms-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.terms-cta-text h2 {
    font-size: 28px;
    font-weight: 100;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.terms-cta-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.6;
}
.terms-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.terms-cta-actions .btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-blue-light);
    color: #fff;
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.25s ease;
}
.terms-cta-actions .btn-cta-primary:hover {
    background: var(--brand-blue);
    color: #fff;
}
.terms-cta-actions .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.25s ease;
}
.terms-cta-actions .btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .terms-layout {
        grid-template-columns: 1fr;
    }
    .terms-toc {
        position: static;
    }
    .terms-toc nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .terms-toc a {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 6px 10px;
        font-size: 12px;
    }
    .terms-toc a.is-active {
        border-left: none;
        border-bottom-color: var(--brand-blue);
    }
}

@media (max-width: 900px) {
    .terms-hero-title { font-size: 38px; }
}

@media (max-width: 600px) {
    .terms-hero { padding: 50px 0 44px; }
    .terms-hero-title { font-size: 30px; }
    .terms-main { padding: 40px 0 56px; }
    .terms-card { padding: 28px 22px 36px; }
    .terms-cta { padding: 52px 0; }
    .terms-cta-inner { flex-direction: column; align-items: flex-start; }
    .terms-cta-text h2 { font-size: 24px; }
    .terms-cta-actions { flex-direction: column; width: 100%; }
    .terms-cta-actions .btn-cta-primary,
    .terms-cta-actions .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}
