
/* =========================================================
   GLOBEXUS — LEGAL INFORMATION PAGES
   Used by: Privacy Policy and Disclaimer
   Existing theme variables inherited from style.css
   Unique namespace: gx-legal-
   ========================================================= */

/* =========================
   PAGE FOUNDATION
   ========================= */

.gx-legal-page {
    overflow: hidden;
    background: var(--off-white);
    color: var(--ink);
}

.gx-legal-page *,
.gx-legal-page *::before,
.gx-legal-page *::after {
    box-sizing: border-box;
}

.gx-legal-container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.gx-legal-page h1,
.gx-legal-page h2,
.gx-legal-page h3,
.gx-legal-page p {
    margin-top: 0;
}

.gx-legal-page h1,
.gx-legal-page h2,
.gx-legal-page h3 {
    color: var(--ink);
    letter-spacing: -0.045em;
}

.gx-legal-page p {
    color: var(--muted);
}

.gx-legal-page a {
    text-decoration: none;
}

.gx-legal-page a:focus-visible {
    outline: 3px solid var(--lavender);
    outline-offset: 4px;
}


/* =========================
   HERO
   ========================= */

.gx-legal-hero {
    position: relative;
    padding: 76px 0 72px;
    background:
        radial-gradient(
            ellipse at 85% 20%,
            rgba(241, 237, 255, 0.65),
            transparent 38%
        ),
        var(--off-white);
}

.gx-legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--coral-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.gx-legal-eyebrow > span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 4px var(--coral-soft);
}

.gx-legal-hero h1 {
    margin-bottom: 19px;
    font-size: clamp(42px, 5.2vw, 62px);
    font-weight: 600;
    line-height: 1.08;
}

.gx-legal-hero h1 span {
    color: var(--coral);
}

.gx-legal-hero > div > p {
    max-width: 700px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.95;
}

.gx-legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-top: 19px;
    border-top: 1px solid var(--line);
}

.gx-legal-meta span {
    color: var(--muted);
    font-size: 10px;
}


/* =========================
   DOCUMENT LAYOUT
   ========================= */

.gx-legal-content-section {
    padding: 55px 0 95px;
    background: var(--section);
}

.gx-legal-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    align-items: start;
    gap: 42px;
}

.gx-legal-sidebar {
    position: sticky;
    top: 24px;
    min-width: 0;
}

.gx-legal-sidebar-card {
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.gx-legal-sidebar-label {
    display: block;
    margin-bottom: 17px;
    color: var(--muted-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.gx-legal-sidebar nav {
    display: grid;
    gap: 3px;
}

.gx-legal-sidebar nav a {
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    transition:
        color var(--transition),
        background var(--transition);
}

.gx-legal-sidebar nav a:hover {
    background: var(--coral-soft);
    color: var(--coral-dark);
}


/* =========================
   DOCUMENT
   ========================= */

.gx-legal-document {
    min-width: 0;
    padding: 36px 39px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.gx-legal-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 35px;
    padding: 19px;
    border: 1px solid #e3def9;
    border-radius: var(--radius-md);
    background: var(--lavender-soft);
}

.gx-legal-notice-icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 8px;
    background: var(--white);
    color: var(--lavender);
    font-size: 13px;
    font-weight: 700;
}

.gx-legal-notice > p {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.85;
}

.gx-legal-notice-coral {
    border-color: #ffe0d9;
    background: var(--coral-pale);
}

.gx-legal-notice-coral .gx-legal-notice-icon {
    color: var(--coral-dark);
}

.gx-legal-section {
    position: relative;
    padding: 29px 0 31px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 30px;
}

.gx-legal-section:first-of-type {
    padding-top: 0;
}

.gx-legal-section-number {
    display: block;
    margin-bottom: 10px;
    color: var(--coral-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.gx-legal-section h2 {
    margin-bottom: 16px;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 600;
    line-height: 1.3;
}

.gx-legal-section h3 {
    margin: 24px 0 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.gx-legal-section p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 2;
}

.gx-legal-section p:last-child {
    margin-bottom: 0;
}

.gx-legal-section ul {
    display: grid;
    gap: 11px;
    margin: 13px 0 19px;
    padding-left: 20px;
}

.gx-legal-section li {
    padding-left: 3px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.gx-legal-section li::marker {
    color: var(--coral);
}


/* =========================
   CONTACT CARD
   ========================= */

.gx-legal-contact-section {
    padding-bottom: 0;
    border-bottom: 0;
}

.gx-legal-contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--off-white);
}

.gx-legal-contact-label {
    color: var(--muted-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.gx-legal-contact-card > a:not(.gx-legal-contact-button) {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.gx-legal-contact-card > a:not(.gx-legal-contact-button):hover {
    color: var(--coral-dark);
}

.gx-legal-contact-card > p {
    margin: 0 0 12px;
    font-size: 11px;
    line-height: 1.8;
}

.gx-legal-contact-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 11px 17px;
    border: 1px solid var(--coral);
    border-radius: 50px;
    background: var(--coral);
    color: var(--navy-950);
    font-size: 10px;
    font-weight: 700;
    transition:
        transform var(--transition),
        background var(--transition);
}

.gx-legal-contact-button:hover {
    transform: translateY(-2px);
    background: var(--coral-dark);
}

.gx-legal-contact-button span {
    font-size: 14px;
}


/* =========================
   DOCUMENT FOOTER
   ========================= */

.gx-legal-bottom-note {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.gx-legal-bottom-note > span {
    color: var(--coral-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.gx-legal-bottom-note > p {
    max-width: 300px;
    margin-bottom: 0;
    font-size: 10px;
    line-height: 1.8;
    text-align: right;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 1000px) {
    .gx-legal-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 24px;
    }

    .gx-legal-document {
        padding: 29px 25px;
    }

    .gx-legal-sidebar-card {
        padding: 19px 13px;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {
    .gx-legal-container {
        width: calc(100% - 36px);
    }

    .gx-legal-hero {
        padding: 53px 0 48px;
    }

    .gx-legal-hero h1 {
        font-size: clamp(37px, 8.5vw, 48px);
    }

    .gx-legal-hero > div > p {
        font-size: 12px;
    }

    .gx-legal-meta {
        flex-direction: column;
        gap: 9px;
    }

    .gx-legal-content-section {
        padding: 30px 0 60px;
    }

    .gx-legal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .gx-legal-sidebar {
        position: static;
    }

    .gx-legal-sidebar-card {
        padding: 17px;
    }

    .gx-legal-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
    }

    .gx-legal-sidebar nav a {
        padding: 8px;
        font-size: 9px;
    }

    .gx-legal-document {
        padding: 23px 19px;
        border-radius: var(--radius-md);
    }

    .gx-legal-notice {
        gap: 10px;
        margin-bottom: 24px;
        padding: 14px;
    }

    .gx-legal-notice > p {
        font-size: 10px;
    }

    .gx-legal-section {
        padding: 24px 0;
    }

    .gx-legal-section h2 {
        font-size: 23px;
    }

    .gx-legal-section h3 {
        font-size: 14px;
    }

    .gx-legal-section p,
    .gx-legal-section li {
        font-size: 11px;
        line-height: 1.9;
    }

    .gx-legal-contact-card {
        padding: 18px;
    }

    .gx-legal-bottom-note {
        flex-direction: column;
        gap: 9px;
    }

    .gx-legal-bottom-note > p {
        text-align: left;
    }
}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 380px) {
    .gx-legal-container {
        width: calc(100% - 28px);
    }

    .gx-legal-document {
        padding: 19px 15px;
    }

    .gx-legal-sidebar-card {
        padding: 13px;
    }

    .gx-legal-sidebar nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .gx-legal-section h2 {
        font-size: 21px;
    }
}


/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {
    .gx-legal-page *,
    .gx-legal-page *::before,
    .gx-legal-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
