/* ==========================================
   IRON ROOTS — LEGAL PAGES
   privacy.html + terms.html
========================================== */

:root {

    --iron-black: #111315;
    --iron-black-soft: #1b1f22;

    --forest: #4f6255;
    --forest-dark: #3d4d43;
    --forest-light: #6d8273;

    --brass: #b08d57;
    --brass-dark: #8e6e3f;
    --brass-light: #c6a775;

    --concrete: #d7d4ce;
    --concrete-light: #ebe9e4;
    --concrete-dark: #b8b5af;

    --white: #f6f7f6;

    --text-dark: #181b1a;
    --text-muted: #626865;

    --heading-font: "Barlow Condensed", sans-serif;
    --body-font: "Inter", sans-serif;

    --container: 1400px;
}


/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--concrete-light);

    color: var(--text-dark);

    font-family: var(--body-font);

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================
   HEADER
========================================== */

.header {
    width: 100%;
    height: 82px;

    padding:
        0 max(4vw, 25px);

    display: flex;
    align-items: center;

    gap: 40px;

    background: var(--iron-black);

    color: var(--white);
}


.logo {
    display: flex;
    flex-direction: column;

    flex-shrink: 0;

    font-family: var(--heading-font);
}


.logo-main {
    font-size: 1.65rem;

    font-weight: 900;

    line-height: 0.85;
}


.logo-sub {
    margin-top: 5px;

    color: var(--brass);

    font-size: 0.56rem;

    letter-spacing: 0.27em;
}


.desktop-nav {
    margin-left: auto;

    display: flex;

    gap: 30px;
}


.desktop-nav a {
    position: relative;

    font-family: var(--heading-font);

    font-weight: 600;

    text-transform: uppercase;
}


.desktop-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--forest-light);

    transition: width 0.25s ease;
}


.desktop-nav a:hover::after {
    width: 100%;
}


.nav-cta {
    padding: 15px 20px;

    background: var(--forest);

    font-family: var(--heading-font);

    font-weight: 700;

    text-transform: uppercase;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.nav-cta:hover {
    background: var(--forest-dark);

    transform: translateY(-2px);
}


/* ==========================================
   LEGAL HERO
========================================== */

.legal-hero {
    min-height: 500px;

    padding:
        100px max(7vw, 30px);

    display: flex;
    align-items: flex-end;

    background:
        linear-gradient(
            135deg,
            var(--iron-black),
            #202822
        );

    color: var(--white);
}


.legal-hero-content {
    width: 100%;

    max-width: var(--container);

    margin: auto;
}


.eyebrow {
    margin-bottom: 18px;

    color: var(--brass);

    font-family: var(--heading-font);

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.legal-hero h1 {
    font-family: var(--heading-font);

    font-size:
        clamp(5rem, 10vw, 10rem);

    font-weight: 900;

    line-height: 0.8;

    letter-spacing: -0.025em;

    text-transform: uppercase;
}


.legal-hero h1 span {
    color: var(--forest-light);
}


.updated {
    margin-top: 35px;

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 0.78rem;

    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* ==========================================
   LEGAL LAYOUT
========================================== */

.legal-layout {
    max-width: var(--container);

    margin: auto;

    padding:
        110px max(5vw, 30px) 140px;

    display: grid;

    grid-template-columns:
        260px minmax(0, 800px);

    justify-content: space-between;

    gap: 100px;
}


/* ==========================================
   SIDEBAR
========================================== */

.legal-sidebar {
    align-self: start;

    position: sticky;

    top: 40px;
}


.legal-sidebar > p {
    margin-bottom: 22px;

    color: var(--brass-dark);

    font-family: var(--heading-font);

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}


.legal-sidebar nav {
    display: flex;
    flex-direction: column;
}


.legal-sidebar a {
    padding: 12px 0;

    border-bottom:
        1px solid var(--concrete-dark);

    color: var(--text-muted);

    font-family: var(--heading-font);

    font-size: 0.95rem;

    font-weight: 600;

    text-transform: uppercase;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}


.legal-sidebar a:hover {
    padding-left: 7px;

    color: var(--forest-dark);
}


/* ==========================================
   ARTICLE CONTENT
========================================== */

.legal-content section {
    padding:
        0 0 65px;

    margin-bottom: 65px;

    border-bottom:
        1px solid var(--concrete-dark);

    scroll-margin-top: 40px;
}


.legal-content section:last-child {
    margin-bottom: 0;

    border-bottom: none;
}


.section-number {
    display: block;

    margin-bottom: 13px;

    color: var(--brass-dark);

    font-family: var(--heading-font);

    font-size: 1rem;

    font-weight: 700;
}


.legal-content h2 {
    margin-bottom: 25px;

    color: var(--text-dark);

    font-family: var(--heading-font);

    font-size:
        clamp(2.7rem, 5vw, 4.8rem);

    font-weight: 800;

    line-height: 0.95;

    text-transform: uppercase;
}


.legal-content p {
    margin-bottom: 18px;

    color: var(--text-muted);

    font-size: 0.98rem;

    line-height: 1.9;
}


.legal-content ul {
    margin:
        25px 0 30px;

    list-style: none;
}


.legal-content li {
    position: relative;

    padding:
        13px 0 13px 28px;

    border-bottom:
        1px solid rgba(0, 0, 0, 0.08);

    color: var(--text-muted);

    line-height: 1.6;
}


.legal-content li::before {
    content: "";

    position: absolute;

    left: 0;
    top: 21px;

    width: 8px;
    height: 8px;

    background: var(--forest);
}


/* ==========================================
   CONTACT BOX
========================================== */

.contact-box {
    margin-top: 30px;

    padding: 30px;

    display: flex;
    flex-direction: column;

    gap: 9px;

    border-left:
        5px solid var(--forest);

    background: var(--iron-black);

    color: var(--white);
}


.contact-box strong {
    margin-bottom: 6px;

    color: var(--brass-light);

    font-family: var(--heading-font);

    font-size: 1.6rem;

    text-transform: uppercase;
}


.contact-box span {
    color:
        rgba(255, 255, 255, 0.65);

    font-size: 0.9rem;
}


/* ==========================================
   FOOTER
========================================== */

.footer {
    padding:
        70px max(6vw, 30px) 30px;

    background: #0b0d0c;

    color: var(--white);
}


.footer-main {
    max-width: var(--container);

    margin: auto;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}


.footer-main > p {
    color:
        rgba(255, 255, 255, 0.45);

    font-family: var(--heading-font);

    font-size: 1.4rem;

    font-weight: 600;

    text-transform: uppercase;
}


.footer-links {
    max-width: var(--container);

    margin:
        50px auto 0;

    padding:
        25px 0;

    display: flex;

    gap: 30px;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.1);
}


.footer-links a {
    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.78rem;

    font-weight: 600;

    text-transform: uppercase;

    transition: color 0.2s ease;
}


.footer-links a:hover {
    color: var(--forest-light);
}


.footer-bottom {
    max-width: var(--container);

    margin:
        25px auto 0;

    display: flex;

    justify-content: space-between;

    gap: 30px;

    color:
        rgba(255, 255, 255, 0.3);

    font-size: 0.7rem;
}


.footer-bottom span:last-child {
    color: var(--forest-light);

    font-family: var(--heading-font);

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1000px) {

    .desktop-nav {
        display: none;
    }


    .nav-cta {
        margin-left: auto;
    }


    .legal-layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }


    .legal-sidebar {
        position: static;
    }


    .legal-sidebar nav {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        column-gap: 30px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 650px) {

    .header {
        height: 72px;

        padding:
            0 18px;
    }


    .nav-cta {
        padding: 12px 15px;

        font-size: 0.75rem;
    }


    .logo-main {
        font-size: 1.35rem;
    }


    .legal-hero {
        min-height: 430px;

        padding:
            80px 22px 60px;
    }


    .legal-hero h1 {
        font-size:
            clamp(4.5rem, 21vw, 7rem);
    }


    .legal-layout {
        padding:
            75px 22px 100px;
    }


    .legal-sidebar nav {
        grid-template-columns: 1fr;
    }


    .legal-content section {
        padding-bottom: 45px;

        margin-bottom: 45px;
    }


    .legal-content p {
        font-size: 0.92rem;

        line-height: 1.8;
    }


    .footer {
        padding:
            60px 22px 30px;
    }


    .footer-main {
        align-items: flex-start;

        flex-direction: column;
    }


    .footer-links {
        flex-wrap: wrap;

        gap: 20px;
    }


    .footer-bottom {
        flex-direction: column;

        gap: 10px;
    }

}