/**
 * Terms & Conditions – Luxury UI
 * Deep charcoal/obsidian dark mode, gold/amber (#FFB800), glassmorphism cards.
 * Serif titles (Playfair Display), sans-serif body (Inter). Sticky sidebar nav.
 */

/* --- Theme --- */
:root {
    --terms-bg: #0b0c0f;
    --terms-obsidian: #12141a;
    --terms-charcoal: #1a1d24;
    --terms-surface: #1e2128;
    --terms-gold: #FFB800;
    --terms-amber: #e5a00d;
    --terms-gold-dim: rgba(255, 184, 0, 0.15);
    --terms-gold-glow: rgba(255, 184, 0, 0.35);
    --terms-border: rgba(255, 184, 0, 0.12);
    --terms-text: #e4e6eb;
    --terms-text-muted: #9ca3af;
    --terms-font-heading: 'Playfair Display', Georgia, serif;
    --terms-font-body: 'Inter', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body.page-terms {
    background: var(--terms-bg);
    color: var(--terms-text);
    font-family: var(--terms-font-body);
}

/* --- Hero --- */
body.page-terms .terms-hero {
    min-height: 38vh;
    padding: 3rem 1.5rem 4rem;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: 70px;
}

body.page-terms .terms-hero .detail-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

body.page-terms .terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 184, 0, 0.12);
    border: 1px solid var(--terms-border);
    border-radius: 50px;
    color: var(--terms-gold);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 24px var(--terms-gold-dim);
}

body.page-terms .terms-hero h1 {
    font-family: var(--terms-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

body.page-terms .terms-hero-intro {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    font-weight: 400;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Page layout: sidebar + main --- */
body.page-terms .terms-page {
    background: var(--terms-bg);
    padding: 3rem 0 5rem;
}

body.page-terms .terms-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: start;
}

/* --- Sticky sidebar (glassmorphism) --- */
body.page-terms .terms-sidebar {
    position: sticky;
    top: 90px;
}

body.page-terms .terms-nav {
    background: rgba(30, 33, 40, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--terms-border);
    border-radius: 16px;
    padding: 1.25rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.page-terms .terms-nav-title {
    display: block;
    font-family: var(--terms-font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--terms-gold);
    padding: 0 1.25rem 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--terms-border);
}

body.page-terms .terms-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    color: var(--terms-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

body.page-terms .terms-nav-link i {
    width: 18px;
    text-align: center;
    color: var(--terms-gold);
    opacity: 0.8;
    transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

body.page-terms .terms-nav-link:hover {
    color: var(--terms-text);
    background: rgba(255, 184, 0, 0.06);
    padding-left: 1.5rem;
}

body.page-terms .terms-nav-link:hover i {
    opacity: 1;
    text-shadow: 0 0 12px var(--terms-gold-glow);
}

/* Active state when section is in view (optional, can be set via JS) */
body.page-terms .terms-nav-link.active {
    color: var(--terms-gold);
    font-weight: 500;
}

body.page-terms .terms-nav-link.active i {
    opacity: 1;
    text-shadow: 0 0 10px var(--terms-gold-glow);
}

/* --- Main content --- */
body.page-terms .terms-main {
    min-width: 0;
}

body.page-terms .policy-content {
    max-width: 100%;
}

body.page-terms .policy-intro {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--terms-text-muted);
    margin: 0 0 2.5rem;
    padding: 1.5rem 1.75rem;
    background: rgba(30, 33, 40, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--terms-border);
    border-radius: 16px;
}

/* --- Cards (glassmorphism, soft glow icons) --- */
body.page-terms .terms-card {
    background: rgba(30, 33, 40, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--terms-border);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

body.page-terms .terms-card:hover {
    border-color: rgba(255, 184, 0, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 184, 0, 0.08);
}

body.page-terms .policy-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.75rem;
    border-bottom: 1px solid var(--terms-border);
}

/* Icon circle with soft glow */
body.page-terms .terms-card-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terms-gold-dim);
    border: 1px solid rgba(255, 184, 0, 0.25);
    color: var(--terms-gold);
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 0 20px var(--terms-gold-dim), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

body.page-terms .terms-card:hover .terms-card-num {
    box-shadow: 0 0 28px var(--terms-gold-glow), 0 0 40px var(--terms-gold-dim);
    background: rgba(255, 184, 0, 0.2);
}

body.page-terms .terms-card-num i {
    font-size: 1rem;
}

body.page-terms .policy-card-header h2 {
    margin: 0;
    font-family: var(--terms-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

body.page-terms .policy-card-body {
    padding: 1.5rem 1.75rem;
}

body.page-terms .policy-card-body p {
    color: var(--terms-text);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

body.page-terms .policy-card-body p:last-child {
    margin-bottom: 0;
}

/* Lists */
body.page-terms .policy-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
}

body.page-terms .policy-list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.65rem;
    color: var(--terms-text);
    line-height: 1.7;
    font-size: 0.98rem;
}

body.page-terms .policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--terms-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--terms-gold-glow);
}

body.page-terms .policy-list-nested {
    margin: 0.5rem 0 0.75rem 1rem;
    padding-left: 0.5rem;
}

body.page-terms .policy-list-nested li {
    margin-bottom: 0.4rem;
}

body.page-terms .policy-list-nested li::before {
    content: none;
}

body.page-terms .policy-card-body a {
    color: var(--terms-gold);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 184, 0, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}

body.page-terms .policy-card-body a:hover {
    color: var(--terms-amber);
    border-bottom-color: var(--terms-gold);
}

body.page-terms .policy-contact-details {
    margin: 1rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--terms-border);
    line-height: 1.9;
    color: var(--terms-text);
}

body.page-terms .policy-signoff {
    margin-top: 1.25rem;
    font-style: italic;
    font-family: var(--terms-font-heading);
    color: var(--terms-gold);
    font-size: 1.05rem;
}

body.page-terms .policy-card-contact {
    border-color: rgba(255, 184, 0, 0.2);
}

body.page-terms .policy-card-contact .policy-card-header .terms-card-num {
    box-shadow: 0 0 18px var(--terms-gold-dim);
}

/* --- Mobile: sidebar becomes top nav / drawer --- */
@media (max-width: 992px) {
    body.page-terms .terms-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 20px;
    }

    body.page-terms .terms-sidebar {
        position: relative;
        top: 0;
    }

    body.page-terms .terms-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
    }

    body.page-terms .terms-nav-title {
        width: 100%;
        padding-bottom: 0.75rem;
        margin-bottom: 0.5rem;
    }

    body.page-terms .terms-nav-link {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
        border-radius: 8px;
        background: rgba(255, 184, 0, 0.06);
    }

    body.page-terms .terms-nav-link:hover {
        padding-left: 0.85rem;
    }
}

@media (max-width: 600px) {
    body.page-terms .terms-hero h1 {
        font-size: 1.75rem;
    }

    body.page-terms .terms-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    body.page-terms .policy-card-header,
    body.page-terms .policy-card-body {
        padding: 1.15rem 1.25rem;
    }

    body.page-terms .policy-card-header h2 {
        font-size: 1.1rem;
    }

    body.page-terms .terms-card-num {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}
