
:root {
    --cream: #f8f6f0;
    --paper: #fffefa;
    --ink: #252720;
    --muted: #77766d;
    --gold: #ae8950;
    --gold-light: #e9ddc5;
    --border: #e9e4d9;
    --white: #ffffff;

    --heading-font: 'Playfair Display', Georgia, serif;
    --body-font: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: var(--body-font);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.75;
}

/* Reading progress */

.reading-progress {
    height: 3px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
}

.reading-progress-bar {
    height: 100%;
    width: 0;
    background: var(--gold);
}

/* Header */

.legal-header {
    height: 82px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 254, 250, .96);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--ink);
}

.brand-symbol {
    font-family: var(--heading-font);
    font-size: 33px;
    color: var(--gold);
}

.brand-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.back-home {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    transition: .3s;
}

.back-home:hover {
    color: var(--gold);
}

/* Main wrapper */

.legal-wrapper {
    max-width: 1250px;
    margin: auto;
    padding: 0 35px 100px;
}

/* Hero */

.legal-hero {
    text-align: center;
    padding: 85px 20px 75px;
    position: relative;
}

.hero-symbol {
    font-family: var(--heading-font);
    font-size: 53px;
    color: var(--gold);
    opacity: .8;
    margin-bottom: 18px;
}

.eyebrow {
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.legal-hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -1.5px;
}

.legal-hero h1 span {
    color: var(--gold);
}

.hero-description {
    max-width: 610px;
    margin: 22px auto;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.9;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
    margin-top: 28px;
}

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

/* Content layout */

.legal-content-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 55px;
    align-items: start;
}

/* Sidebar */

.legal-sidebar {
    position: sticky;
    top: 35px;
    padding: 28px 22px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 5px;
}

.sidebar-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 20px;
}

.legal-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-sidebar nav a {
    font-size: 12px;
    line-height: 1.5;
    padding: 9px 11px;
    text-decoration: none;
    color: var(--muted);
    border-left: 2px solid transparent;
    transition: .25s;
}

.legal-sidebar nav a:hover,
.legal-sidebar nav a.active {
    color: var(--gold);
    background: #f8f4eb;
    border-left-color: var(--gold);
}

.sidebar-note {
    margin-top: 35px;
    padding: 20px 12px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.sidebar-note span {
    font-family: var(--heading-font);
    font-size: 28px;
    color: var(--gold);
}

.sidebar-note p {
    font-family: var(--heading-font);
    font-style: italic;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
    margin-top: 8px;
}

/* Article */

.legal-article {
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--border);
    padding: 55px 60px;
    border-radius: 5px;
}

.article-intro {
    padding: 25px 28px;
    margin-bottom: 40px;
    background: #f8f5ed;
    border-left: 3px solid var(--gold);
}

.intro-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
}

.article-intro p {
    font-family: var(--heading-font);
    font-size: 18px;
    line-height: 1.8;
    color: #48483e;
    margin-top: 10px;
}

/* Sections */

.legal-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 100px;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 17px;
    color: var(--ink);
}

.legal-section h2 span {
    color: var(--gold);
    font-size: 14px;
    margin-right: 12px;
}

.legal-section p {
    font-size: 13px;
    color: #696a61;
    margin-bottom: 14px;
    line-height: 1.95;
}

.legal-section ul {
    list-style: none;
    padding: 4px 0 10px 5px;
}

.legal-section li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
    font-size: 13px;
    line-height: 1.8;
    color: #696a61;
}

.legal-section li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--gold);
    font-size: 10px;
}

.legal-section h3 {
    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 600;
    margin: 22px 0 10px;
}

/* Contact card */

.contact-card {
    display: flex;
    gap: 20px;
    padding: 27px;
    margin-top: 35px;
    background: #f8f5ed;
    border: 1px solid var(--gold-light);
    border-radius: 5px;
}

.contact-icon {
    font-size: 27px;
    color: var(--gold);
}

.contact-card h3 {
    font-family: var(--heading-font);
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 7px;
}

.contact-card p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.contact-card a {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Article ending */

.article-end {
    text-align: center;
    padding: 55px 10px 15px;
}

.article-end span {
    font-family: var(--heading-font);
    color: var(--gold);
    font-size: 36px;
}

.article-end p {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 10px 0 5px;
}

.article-end small {
    color: var(--muted);
    font-size: 10px;
}

/* Footer */

.legal-footer {
    padding: 35px 7%;
    text-align: center;
    background: #252720;
    color: #fff;
}

.legal-footer > a {
    font-family: var(--heading-font);
    color: #e3c28b;
    font-size: 20px;
    text-decoration: none;
}

.legal-footer div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin: 20px 0;
}

.legal-footer div a {
    color: #c3c1b8;
    text-decoration: none;
    font-size: 11px;
}

.legal-footer div a:hover {
    color: #e3c28b;
}

.legal-footer p {
    font-size: 10px;
    color: #96968d;
}

/* Back to top */

#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 43px;
    height: 43px;
    border: 1px solid var(--gold);
    background: var(--ink);
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 100;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--gold);
    transform: translateY(-4px);
}

/* Responsive */

@media(max-width: 900px) {

    .legal-content-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .legal-sidebar {
        position: relative;
        top: 0;
    }

    .legal-sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-note {
        display: none;
    }

    .legal-article {
        padding: 40px;
    }
}

@media(max-width: 600px) {

    .legal-header {
        height: 70px;
        padding: 0 18px;
    }

    .brand-name {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .brand-symbol {
        font-size: 27px;
    }

    .back-home {
        font-size: 11px;
    }

    .legal-wrapper {
        padding: 0 15px 60px;
    }

    .legal-hero {
        padding: 65px 5px 50px;
    }

    .legal-hero h1 {
        font-size: 39px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-meta {
        font-size: 10px;
    }

    .legal-sidebar {
        padding: 20px 15px;
    }

    .legal-sidebar nav {
        grid-template-columns: 1fr;
    }

    .legal-article {
        padding: 25px 20px;
    }

    .article-intro {
        padding: 20px;
    }

    .article-intro p {
        font-size: 16px;
    }

    .legal-section h2 {
        font-size: 21px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 12px;
    }

    .contact-card {
        padding: 20px 15px;
    }

    .legal-footer div {
        gap: 15px;
    }
}
