/* =========================
   LEGAL PAGES
========================= */

.legal-page {
    background: #f4f2ed;
    color: #151515;
}

/* =========================
   HERO
========================= */

.legal-hero {
    position: relative;
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 150px 32px 120px;

    overflow: hidden;
    background: #111;
}

.legal-hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.legal-hero-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    transform: scale(1.02);
}

.legal-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.40) 0%,
            rgba(0,0,0,0.44) 45%,
            rgba(0,0,0,0.72) 100%
        );
}

.legal-hero-content {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 1050px;
    margin: 0 auto;

    text-align: center;
    color: #ffffff;
}

.legal-hero-content h1 {
    max-width: 980px;
    margin: 0 auto;

    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.02;
    font-weight: 400;

    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.legal-hero-content p {
    max-width: 720px;
    margin: 30px auto 0;

    font-size: 16px;
    line-height: 1.58;
    font-weight: 400;

    color: rgba(255,255,255,0.84);
}


/* =========================
   CONTENT
========================= */

.legal-content-section {
    position: relative;
    padding: 86px 32px 10px;
    overflow: hidden;
}




.legal-content-inner {
    max-width: 1020px;
    margin: 0 auto;
}

/* First block from WordPress */

.legal-content-inner > *:first-child {
    margin-top: 0;
}

/* Headings */

.legal-content-inner h1 {
    margin: 0 0 34px;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 400;

    text-align: center;
    color: #111;
}

.legal-content-inner h2 {
    margin: 62px 0 22px;

    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.12;
    font-weight: 400;

    color: #111111;
}

.legal-content-inner h3 {
    margin: 38px 0 16px;

    font-size: clamp(23px, 2.1vw, 29px);
    line-height: 1.2;
    font-weight: 500;

    color: #111111;
}

.legal-content-inner h4 {
    margin: 34px 0 14px;

    font-size: 19px;
    line-height: 1.25;
    font-weight: 600;

    color: #111;
}

/* Paragraphs */

.legal-content-inner p {
    margin: 0 0 20px;

    font-size: 18px;
    line-height: 1.78;
    font-weight: 400;

    color: #303030;
}

/* Strong / italic */

.legal-content-inner strong {
    color: #111;
    font-weight: 600;
}

.legal-content-inner em {
    color: rgba(0,0,0,0.82);
}

/* Lists */

.legal-content-inner ul,
.legal-content-inner ol {
    margin: 0 0 24px 24px;
    padding: 0;
}

.legal-content-inner li {
    margin-bottom: 7px;

    font-size: 17.5px;
    line-height: 1.62;

    color: #333333;
}

.legal-content-inner li::marker {
    color: rgba(0,0,0,0.55);
}

/* Links */

.legal-content-inner a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.legal-content-inner a:hover {
    color: rgba(0,0,0,0.62);
}

/* Optional centered intro blocks */

.legal-content-inner .has-text-align-center {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Separator if WordPress uses it */

.legal-content-inner hr {
    margin: 58px 0;

    border: none;
    border-top: 1px solid rgba(0,0,0,0.14);
}

/* Tables just in case */

.legal-content-inner table {
    width: 100%;
    margin: 34px 0;

    border-collapse: collapse;
    font-size: 16px;
}

.legal-content-inner th,
.legal-content-inner td {
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.14);

    text-align: left;
    vertical-align: top;
}

/* =========================
   ADMIN BAR FIX
========================= */

body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .legal-hero {
        min-height: 580px;
        padding: 140px 24px 110px;
    }

    .legal-hero-content h1 {
        font-size: clamp(36px, 8vw, 58px);
    }

    .legal-hero-content p {
        font-size: 17px;
    }

    .legal-content-section {
        padding: 72px 24px 110px;
    }

    .legal-content-inner {
        max-width: 100%;
    }

    .legal-content-inner p,
    .legal-content-inner li {
        font-size: 17px;
        line-height: 1.78;
    }
}

@media (max-width: 600px) {
    .legal-hero {
        min-height: 520px;
        padding: 130px 22px 100px;
    }

    .legal-hero-content h1 {
        letter-spacing: 0.035em;
    }

    .legal-wave-divider {
        height: 64px;
        margin-top: -64px;
    }

    .legal-content-section {
        padding: 58px 22px 90px;
    }

    .legal-content-inner h2 {
        margin-top: 52px;
    }
}