/* =========================================================
   SLG GOLD - TERMS & CONDITIONS / LEGAL STYLESHEET
========================================================= */

:root {
    --primary-dark: #002938;
    --primary-light: #FAF7ED;
    --gold: #D4AF37;
    --gold-light: #ECC75C;
    --gold-gradient: linear-gradient(135deg, #ECC75C 0%, #D4AF37 60%, #C09A29 100%);
    --dark-text: #1A1A1A;
    --secondary-text: #4A5B68;
    --white: #FFFFFF;
    --card-border: rgba(212, 175, 55, 0.28);
    --font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--primary-light);
    font-size: 16px;
    line-height: 28px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   HERO SECTION (LUXURY DEEP TEAL WITH GOLD AURA)
========================================================= */
.legal-hero-section {
    position: relative;
    background: radial-gradient(ellipse at 50% 40%, #063c4c 0%, #002938 60%, #00141c 100%);
    padding: 70px 20px 75px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    overflow: hidden;
}

.legal-hero-ambient {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 380px;
    background: radial-gradient(circle, rgba(236, 199, 92, 0.2) 0%, rgba(212, 175, 55, 0.05) 50%, transparent 75%);
    filter: blur(55px);
    pointer-events: none;
}

.legal-hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.legal-eyebrow-line {
    width: 32px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #ECC75C);
}

.legal-eyebrow-line.right {
    background: linear-gradient(90deg, #ECC75C, transparent);
}

.legal-eyebrow-text {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #ECC75C;
    text-transform: uppercase;
}

.legal-hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 54px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.legal-title-gold {
    background: linear-gradient(135deg, #FFF9D2 0%, #ECC75C 40%, #D4AF37 75%, #AA7C11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.legal-hero-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 28px;
    color: #CAD7DF;
    max-width: 680px;
    margin: 0 auto 28px;
}

/* Hero Pillars */
.legal-hero-pillars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-pillar-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35);
    backdrop-filter: blur(8px);
}

.legal-pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ECC75C;
}

.legal-pillar-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    text-transform: uppercase;
}

/* =========================================================
   MAIN CONTENT AREA (SIDEBAR + ARTICLE CARDS)
========================================================= */
.legal-main-section {
    background: #FAF7ED;
    padding: 70px 20px 100px;
    position: relative;
}

.legal-layout-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 45px;
    align-items: start;
}

/* Sticky Sidebar Table of Contents */
.legal-sidebar {
    position: sticky;
    top: 100px;
    background: #FFFFFF;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    padding: 26px 22px;
    box-shadow: 0 8px 30px rgba(0, 41, 56, 0.05);
}

.legal-sidebar-heading {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: #002938;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 41, 56, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-toc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: #4A5B68;
    transition: all 0.25s ease;
}

.legal-toc-num {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: #D4AF37;
    min-width: 22px;
}

.legal-toc-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #002938;
    transform: translateX(4px);
}

.legal-toc-link.active {
    background: #002938;
    color: #ECC75C;
    font-weight: 600;
}

.legal-toc-link.active .legal-toc-num {
    color: #ECC75C;
}

/* Right Articles Area */
.legal-content-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Overview Banner Card */
.legal-overview-card {
    background: #FFFFFF;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 18px;
    padding: 32px 36px;
    box-shadow: 0 10px 32px rgba(0, 41, 56, 0.05);
    position: relative;
    overflow: hidden;
}

.legal-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gold-gradient);
}

.legal-overview-badge {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #D4AF37;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.legal-overview-title {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 32px;
    font-weight: 800;
    color: #002938;
    margin-bottom: 12px;
}

.legal-overview-desc {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 28px;
    color: #3B5360;
}

/* Individual Clause Article Cards */
.legal-clause-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 41, 56, 0.09);
    border-radius: 18px;
    padding: 32px 36px;
    box-shadow: 0 6px 24px rgba(0, 41, 56, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    scroll-margin-top: 110px;
}

.legal-clause-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 41, 56, 0.08);
    border-color: rgba(212, 175, 55, 0.45);
}

.legal-clause-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.legal-clause-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 41, 56, 0.06);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #002938;
}

.legal-clause-title {
    font-family: var(--font-heading);
    font-size: 23px;
    line-height: 30px;
    font-weight: 800;
    color: #002938;
}

.legal-clause-body p {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 28px;
    color: #4A5B68;
    margin-bottom: 14px;
}

.legal-clause-body p:last-child {
    margin-bottom: 0;
}

.legal-points-list {
    list-style: none;
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-points-list li {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 27px;
    color: #4A5B68;
    position: relative;
    padding-left: 26px;
}

.legal-points-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: #D4AF37;
    font-size: 13px;
}

.legal-points-list li strong {
    color: #002938;
}

/* Assistance / Help Banner Box */
.legal-support-card {
    background: linear-gradient(135deg, #002938 0%, #001c27 100%);
    border-radius: 18px;
    padding: 38px 36px;
    text-align: center;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    margin-top: 10px;
}

.legal-support-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.legal-support-desc {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 26px;
    color: #CAD7DF;
    max-width: 620px;
    margin: 0 auto 24px;
}

.legal-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    border-radius: 30px;
    background: var(--gold-gradient);
    color: #002938;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45);
}

.legal-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(212, 175, 55, 0.65);
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 1024px) {
    .legal-layout-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-toc-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .legal-hero-section {
        padding: 50px 16px 55px;
    }

    .legal-hero-title {
        font-size: 32px;
        line-height: 1.3;
    }

    .legal-hero-subtitle {
        font-size: 15px;
        line-height: 25px;
    }

    .legal-main-section {
        padding: 40px 16px 70px;
    }

    .legal-overview-card,
    .legal-clause-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .legal-clause-title {
        font-size: 19px;
        line-height: 26px;
    }

    .legal-clause-num-badge {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .legal-support-card {
        padding: 30px 20px;
    }

    .legal-support-title {
        font-size: 22px;
    }
}
