/* FILE: terms.css */
/* ============================================================
   TERMS.CSS — Terms & Conditions page styles (No Accordion)
   Restructured: TOC left, Content center, Meta right
   ============================================================ */

/* ═══════════════════ GLOBAL & VARIABLES ═══════════════════ */
:root {
    --terms-toc-width: 280px;
    --terms-sidebar-width: 300px;
    --nav-h: 70px; /* Adjust to match your site's nav height */
}

/* ═══════════════════ HERO ═══════════════════ */
.terms-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 50px 0 48px;
}

.terms-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--hero-bg, linear-gradient(135deg, #0a0f1e 0%, #1a2a4a 50%, #0f3460 100%));
    background-size: cover;
    background-position: center;
}

.terms-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 15, 30, 0.96) 0%,
        rgba(10, 15, 30, 0.85) 55%,
        rgba(232, 25, 44, 0.1) 100%
    );
}

/* Animated particles */
.terms-hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.terms-hero-particles::before,
.terms-hero-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: termsFloat 8s ease-in-out infinite;
}

.terms-hero-particles::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    top: -80px;
    right: 10%;
}

.terms-hero-particles::after {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #1d4ed8, transparent 70%);
    bottom: -60px;
    left: 8%;
    animation-delay: -4s;
}

@keyframes termsFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.terms-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb i.fa-chevron-right {
    font-size: 10px;
    opacity: 0.4;
}

/* Badge */
.terms-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 25, 44, 0.15);
    border: 1px solid rgba(232, 25, 44, 0.3);
    color: #ff6b7a;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.terms-hero-badge i { font-size: 13px; }

/* Title */
.terms-hero-title {
    font-family: "Oswald", sans-serif;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

/* Description */
.terms-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 28px;
}

/* Highlights */
.terms-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.terms-highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    padding: 7px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}

.terms-highlight-pill:hover {
    background: rgba(232, 25, 44, 0.2);
    border-color: rgba(232, 25, 44, 0.4);
    color: #fff;
}

.terms-highlight-pill i {
    color: #4ade80;
    font-size: 12px;
}

/* Date Row */
.terms-date-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.terms-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.terms-date-badge strong { color: #fff; }
.terms-date-badge i { color: var(--accent); font-size: 14px; }

.terms-date-badge--blue {
    background: rgba(29, 78, 216, 0.12);
    border-color: rgba(29, 78, 216, 0.25);
}

.terms-date-badge--blue i { color: #60a5fa; }

/* ═══════════════════ MAIN LAYOUT (3 COLUMNS) ═══════════════════ */
.terms-wrap {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 24px;
}

.terms-layout {
    display: grid;
    grid-template-columns: var(--terms-toc-width) 1fr var(--terms-sidebar-width);
    gap: 32px;
    padding: 48px 0 80px;
    align-items: start;
}

/* ═══════════════════ LEFT SIDEBAR (TOC) ═══════════════════ */
.terms-sidebar-left {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    max-height: calc(100vh - var(--nav-h) - 48px);
    overflow-y: auto;
    scrollbar-width: none;
}

.terms-sidebar-left::-webkit-scrollbar {
    width: 4px;
}

.terms-sidebar-left::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* Table of Contents Widget */
.terms-toc {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.widget-title {
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    transition: all var(--transition);
    text-decoration: none;
}

.toc-link:hover,
.toc-link.active {
    background: var(--surface2);
    color: var(--accent);
}

.toc-link.active {
    background: rgba(232, 25, 44, 0.08);
    color: var(--accent);
    font-weight: 600;
}

.toc-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.toc-link:hover .toc-icon {
    transform: scale(1.05);
}

.toc-arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--text3);
    opacity: 0;
    transition: opacity var(--transition);
}

.toc-link:hover .toc-arrow {
    opacity: 1;
    color: var(--accent);
}

/* ═══════════════════ CENTER MAIN CONTENT ═══════════════════ */
.terms-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Intro Card */
.terms-intro-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(232, 25, 44, 0.05) 0%, rgba(29, 78, 216, 0.05) 100%);
    border: 1px solid rgba(232, 25, 44, 0.12);
    border-radius: var(--radius);
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.terms-intro-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(232, 25, 44, 0.25);
}

.terms-intro-text h2 {
    font-family: "Oswald", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.terms-intro-text p {
    font-size: 15px;
    color: var(--text2);
    line-height: 1.7;
    margin: 0;
}

/* Section Cards (No Accordion) */
.terms-section {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.terms-section:hover {
    box-shadow: var(--shadow);
}

.terms-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.terms-section-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.terms-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.terms-section-header h3 {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.2px;
}

.terms-section-body {
    display: block;
    max-height: none;
    overflow: visible;
}

.terms-section-content {
    padding: 28px 28px 32px 88px;
    font-size: 15px;
    color: var(--text2);
    line-height: 1.8;
}

/* Rich text content styling */
.terms-section-content h1,
.terms-section-content h2,
.terms-section-content h3,
.terms-section-content h4 {
    font-family: "Oswald", sans-serif;
    color: var(--text);
    margin: 28px 0 14px;
    font-weight: 600;
}

.terms-section-content h2 { font-size: 22px; }
.terms-section-content h3 { font-size: 18px; }
.terms-section-content h4 { font-size: 16px; }

.terms-section-content p {
    margin-bottom: 16px;
    color: var(--text2);
}

.terms-section-content ul,
.terms-section-content ol {
    margin: 16px 0 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms-section-content ul li {
    list-style: disc;
    padding-left: 6px;
}

.terms-section-content ol li {
    list-style: decimal;
    padding-left: 6px;
}

.terms-section-content li {
    color: var(--text2);
    line-height: 1.75;
}

.terms-section-content strong {
    color: var(--text);
    font-weight: 700;
}

.terms-section-content a {
    color: var(--accent);
    text-decoration: underline;
    transition: opacity var(--transition);
}

.terms-section-content a:hover { opacity: 0.8; }

.terms-section-content blockquote {
    background: var(--surface2);
    padding: 16px 22px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
    font-style: italic;
    color: var(--text2);
    border-left: 3px solid var(--accent);
}

.terms-section-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.terms-section-content th {
    background: var(--surface2);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text);
    border: 1px solid var(--border);
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.terms-section-content td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    color: var(--text2);
    vertical-align: top;
}

.terms-section-content tr:nth-child(even) td {
    background: var(--surface2);
}

/* Empty state */
.terms-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text3);
}

.terms-empty i {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.4;
}

.terms-empty p { font-size: 15px; }

/* ═══════════════════ RIGHT SIDEBAR ═══════════════════ */
.terms-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    max-height: calc(100vh - var(--nav-h) - 48px);
    overflow-y: auto;
    scrollbar-width: none;
}

.terms-sidebar-right::-webkit-scrollbar {
    width: 4px;
}

.terms-sidebar-right::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* Sidebar Widget Base */
.sidebar-widget {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* Contact Card */
.terms-contact-card p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 16px;
}

.terms-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    transition: all var(--transition);
    margin-bottom: 14px;
    text-decoration: none;
}

.terms-contact-btn:hover {
    background: #c7152a;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(232, 25, 44, 0.3);
}

.terms-contact-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text3);
    justify-content: center;
}

.terms-contact-email i { color: var(--accent); }

/* Quick Links */
.terms-link-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.terms-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    transition: all var(--transition);
    text-decoration: none;
}

.terms-link-item:hover {
    background: var(--surface2);
    color: var(--accent);
}

.terms-link-item > i:first-child {
    width: 32px;
    height: 32px;
    background: var(--surface2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: all var(--transition);
}

.terms-link-item:hover > i:first-child {
    background: rgba(232, 25, 44, 0.1);
    color: var(--accent);
}

.terms-link-item .fa-arrow-right {
    margin-left: auto;
    font-size: 11px;
    opacity: 0;
    transition: opacity var(--transition);
}

.terms-link-item:hover .fa-arrow-right { opacity: 1; }

/* Meta Card */
.terms-meta-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
}

.terms-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.terms-meta-row:last-of-type { border-bottom: none; }

.terms-meta-row > i {
    width: 38px;
    height: 38px;
    background: rgba(232, 25, 44, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 15px;
    flex-shrink: 0;
}

.terms-meta-row div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.terms-meta-row span {
    font-size: 11px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.terms-meta-row strong {
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
}

.terms-meta-note {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    font-size: 11.5px;
    color: var(--text3);
    line-height: 1.5;
    background: var(--surface2);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
}

.terms-meta-note i {
    color: var(--accent);
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1200px) {
    .terms-layout {
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .terms-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .terms-sidebar-left,
    .terms-sidebar-right {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    /* TOC becomes horizontal scrollable on tablet */
    .toc-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .toc-link {
        padding: 8px 14px;
        font-size: 12px;
        border: 1px solid var(--border);
        background: var(--surface);
    }
    
    .toc-icon { width: 24px; height: 24px; font-size: 10px; }
    .toc-arrow { display: none; }
    
    .terms-section-content {
        padding: 24px 24px 28px;
    }
}

@media (max-width: 768px) {
    .terms-hero { min-height: 340px; padding: 40px 0 36px; }
    .terms-hero-title { font-size: 30px; }
    .terms-hero-desc { font-size: 14px; }
    
    .terms-wrap { padding: 0 16px; }
    .terms-layout { padding: 32px 0 60px; gap: 28px; }
    
    .terms-section-header { padding: 16px 20px; }
    .terms-section-header h3 { font-size: 17px; }
    .terms-section-icon { width: 36px; height: 36px; font-size: 15px; }
    .terms-section-content { padding: 20px; font-size: 14px; }
    
    .terms-intro-card { flex-direction: column; gap: 16px; padding: 20px; }
    .terms-intro-icon { width: 48px; height: 48px; font-size: 20px; }
    .terms-intro-text h2 { font-size: 19px; }
    
    .terms-date-row { flex-direction: column; gap: 8px; }
    .terms-date-badge { font-size: 12px; }
}

@media (max-width: 480px) {
    .terms-hero { padding: 32px 0 28px; }
    .terms-hero-title { font-size: 26px; }
    .terms-highlights { gap: 7px; }
    .terms-highlight-pill { font-size: 11px; padding: 5px 11px; }
    
    .terms-section-header { padding: 14px 16px; gap: 10px; }
    .terms-section-icon { width: 30px; height: 30px; font-size: 13px; border-radius: 8px; }
    .terms-section-header h3 { font-size: 15px; }
    .terms-section-content { padding: 16px; font-size: 13px; }
    
    .sidebar-widget { padding: 16px; }
}

/* Dark theme adjustments */
[data-theme="dark"] .terms-intro-card {
    background: linear-gradient(135deg, rgba(232, 25, 44, 0.08) 0%, rgba(29, 78, 216, 0.08) 100%);
    border-color: rgba(232, 25, 44, 0.2);
}

[data-theme="dark"] .terms-section {
    border-color: var(--border);
}

[data-theme="dark"] .toc-link.active {
    background: rgba(232, 25, 44, 0.12);
}

[data-theme="dark"] .terms-meta-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
}