﻿/* ═══════════════════════════════════════════════════════
   TERMS, SLA & COMPLIANCE — Page-Specific Styles
   ═══════════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────── */
.terms-hero {
    position: relative;
    padding: 10rem 2rem 4rem;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.hero-glow--1 {
    width: 500px;
    height: 500px;
    background: var(--accent-indigo);
    top: -180px;
    left: -100px;
    opacity: 0.15;
}

.hero-glow--2 {
    width: 400px;
    height: 400px;
    background: var(--accent-emerald);
    bottom: -150px;
    right: -80px;
    opacity: 0.1;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-indigo-glow);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.meta-item strong {
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}


/* ── MAIN LAYOUT (Sidebar + Content) ───────────────── */
.terms-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
    align-items: start;
}

/* ── SIDEBAR ────────────────────────────────────────── */
.terms-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-inner {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
}

.sidebar-link svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.25s ease;
}

.sidebar-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-indigo);
    border-radius: 4px;
    transition: height 0.3s ease;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.06);
}

.sidebar-link:hover svg {
    opacity: 0.8;
}

.sidebar-link.active {
    color: var(--accent-indigo-glow);
    background: rgba(99, 102, 241, 0.1);
}

.sidebar-link.active svg {
    opacity: 1;
    color: var(--accent-indigo);
}

.sidebar-link.active .sidebar-indicator {
    height: 60%;
}

.sidebar-cta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.sidebar-cta p {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}


/* ── LEGAL SECTIONS ─────────────────────────────────── */
.legal-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

.legal-icon--emerald {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.legal-icon--amber {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.legal-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
}

.legal-subsection {
    margin-bottom: 2.5rem;
}

.legal-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-indigo);
}

.legal-body {
    padding-left: 0.5rem;
}

.legal-body p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-body p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-body a.legal-link {
    color: var(--accent-indigo-glow);
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    transition: border-color 0.2s ease;
}

.legal-body a.legal-link:hover {
    border-color: var(--accent-indigo-glow);
}


/* ── HIGHLIGHT CARDS ────────────────────────────────── */
.legal-highlight-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    overflow: hidden;
}

.legal-highlight-card .card-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.legal-highlight-card .card-content h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-indigo-glow);
    margin-bottom: 0.5rem;
}

.legal-highlight-card .card-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.legal-highlight-card--amber {
    border-color: rgba(245, 158, 11, 0.2);
}

.legal-highlight-card--amber .card-glow {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent);
}

.legal-highlight-card--amber .card-content h4 {
    color: var(--accent-amber-glow);
}


/* ── LEGAL LISTS ────────────────────────────────────── */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-indigo);
    opacity: 0.6;
}


/* ── SLA TABLE ──────────────────────────────────────── */
.sla-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.sla-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.sla-table thead {
    background: rgba(99, 102, 241, 0.08);
}

.sla-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.sla-table td {
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(99, 102, 241, 0.06);
}

.sla-table tbody tr:last-child td {
    border-bottom: none;
}

.sla-table tbody tr {
    transition: background 0.2s ease;
}

.sla-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.sla-service-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sla-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sla-dot--indigo {
    background: var(--accent-indigo);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.sla-dot--emerald {
    background: var(--accent-emerald);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.sla-dot--amber {
    background: var(--accent-amber);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.sla-badge {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.sla-badge--high {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald-glow);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.sla-badge--medium {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber-glow);
    border: 1px solid rgba(245, 158, 11, 0.25);
}


/* ── SLA FORMULA CARD ───────────────────────────────── */
.sla-formula-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin: 1.5rem 0;
    overflow: hidden;
}

.sla-formula-card .card-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12), transparent);
    pointer-events: none;
}

.sla-formula-card .card-content h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-indigo-glow);
    margin-bottom: 1rem;
}

.formula-block {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.formula-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-indigo-glow);
}

.formula-examples {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.formula-example {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.formula-example .example-label {
    font-weight: 600;
    color: var(--text-tertiary);
    margin-right: 0.35rem;
}

.formula-example strong {
    color: var(--accent-emerald);
}


/* ── RIGHTS GRID ────────────────────────────────────── */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.right-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.right-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.right-card .card-content {
    padding: 1.25rem;
}

.right-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.right-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}


/* ── PROHIBITED GRID ───────────────────────────────── */
.prohibited-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.prohibited-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.prohibited-item:hover {
    border-color: rgba(239, 68, 68, 0.25);
}

.prohibited-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.prohibited-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.prohibited-item p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.55;
    margin: 0;
}


/* ── COMPLIANCE GRID ────────────────────────────────── */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.compliance-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.compliance-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-4px);
}

.compliance-card .card-glow {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.compliance-card .card-content {
    padding: 2rem 1.5rem;
    text-align: center;
}

.compliance-badge-icon {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
}

.compliance-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.compliance-full {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.compliance-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}


/* ── LEGAL CONTACT SECTION ──────────────────────────── */
.legal-contact-section {
    margin-bottom: 0;
}

.legal-contact-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.legal-contact-card .card-glow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 150px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1), transparent);
    pointer-events: none;
}

.legal-contact-card .card-content {
    padding: 3rem;
    text-align: center;
}

.legal-contact-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.legal-contact-card > .card-content > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 1.75rem;
}

.legal-contact-methods {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-method a {
    font-size: 0.88rem;
    color: var(--accent-indigo-glow);
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    transition: border-color 0.2s ease;
}

.contact-method a:hover {
    border-color: var(--accent-indigo-glow);
}


/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .terms-layout {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 868px) {
    .terms-layout {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem 4rem;
    }

    .terms-sidebar {
        position: static;
        max-height: none;
    }

    .sidebar-inner {
        display: flex;
        flex-direction: column;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.25rem;
    }

    .sidebar-cta {
        display: none;
    }

    .terms-hero {
        padding: 8rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .compliance-grid {
        grid-template-columns: 1fr 1fr;
    }

    .prohibited-grid {
        grid-template-columns: 1fr;
    }

    .rights-grid {
        grid-template-columns: 1fr 1fr;
    }

    .legal-contact-card .card-content {
        padding: 2rem 1.5rem;
    }

    .legal-contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 540px) {
    .terms-hero {
        padding: 7rem 1rem 2.5rem;
    }

    .terms-layout {
        padding: 1.5rem 1rem 3rem;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .sla-formula-card .card-content {
        padding: 0;
    }

    .sla-formula-card {
        padding: 1.25rem;
    }

    .formula-block code {
        font-size: 0.75rem;
    }

    .legal-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .legal-title {
        font-size: 1.35rem;
    }
}


/* ── PRINT STYLES ───────────────────────────────────── */
@media print {
    body {
        background: #fff !important;
        color: #111 !important;
    }

    .nav-glass,
    .footer-glass,
    .terms-sidebar,
    .hero-bg-effects,
    .hero-actions,
    .card-glow,
    .sidebar-indicator {
        display: none !important;
    }

    .terms-hero {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-title,
    .legal-title,
    .legal-subtitle {
        color: #111 !important;
        -webkit-text-fill-color: #111 !important;
    }

    .hero-title .gradient-text {
        -webkit-text-fill-color: #333 !important;
    }

    .hero-subtitle,
    .meta-item,
    .legal-body p,
    .legal-list li,
    .compliance-desc,
    .right-card p,
    .formula-example {
        color: #333 !important;
    }

    .terms-layout {
        display: block;
        padding: 1rem 0;
    }

    .legal-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }

    .legal-highlight-card,
    .sla-formula-card,
    .right-card,
    .compliance-card,
    .prohibited-item,
    .legal-contact-card {
        background: #f8f8f8 !important;
        border: 1px solid #ddd !important;
    }

    .sla-table th {
        background: #eee !important;
        color: #111 !important;
    }

    .sla-table td {
        color: #333 !important;
        border-bottom-color: #ddd !important;
    }

    .sla-badge {
        border: 1px solid #999 !important;
        color: #111 !important;
        background: #eee !important;
    }

    .formula-block {
        background: #f0f0f0 !important;
        border-color: #ccc !important;
    }

    .formula-block code {
        color: #333 !important;
    }

    a {
        color: #111 !important;
        text-decoration: underline !important;
    }
}

/* --- 1024px Tablet --- */
@media (max-width: 1024px) {
    .terms-layout { grid-template-columns: 1fr; }
    .terms-sidebar { display: none; }
}