/* ============================================================
   accessibility-statement.css — Accessibility Statement page styles
   Shares the same .legal-* class structure as privacy-policy.css
   ============================================================ */

/* Reset section defaults */
section.legal-hero,
section.legal-section {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
    animation: none;
}

/* Grid overlay */
section.legal-hero::before,
section.legal-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 44px, rgba(255,255,255,0.02) 44px, rgba(255,255,255,0.02) 45px),
        repeating-linear-gradient(90deg, transparent, transparent 44px, rgba(255,255,255,0.02) 44px, rgba(255,255,255,0.02) 45px);
    pointer-events: none;
    z-index: 0;
}

section.legal-body::before {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 44px, rgba(0,0,0,0.02) 44px, rgba(0,0,0,0.02) 45px),
        repeating-linear-gradient(90deg, transparent, transparent 44px, rgba(0,0,0,0.02) 44px, rgba(0,0,0,0.02) 45px);
}

/* Section backgrounds */
section.legal-hero { position: relative; background: linear-gradient(135deg, var(--topographic-teal) 0%, var(--contour-green) 100%); padding: 0; }
section.legal-body { position: relative; background: var(--white); padding: clamp(48px, 6vh, 80px) 0 clamp(60px, 8vh, 100px); scroll-margin-top: 71px; }

/* ============================================================
   HERO
   ============================================================ */

.legal-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Animated gradient mesh overlay */
.legal-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 166, 97, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(10, 122, 140, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(45, 95, 63, 0.07) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(5, 15, 20, 0.15) 0%, rgba(5, 15, 20, 0.00) 45%, rgba(5, 15, 20, 0.30) 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: meshDrift 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes meshDrift {
    0%   { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 0%; }
    50%  { background-position: 100% 50%, 0% 100%, 100% 0%, 0% 0%; }
    100% { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 0%; }
}

/* Large compass behind hero text */
.legal-compass-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.07;
    pointer-events: none;
}

/* Photo hero variant — shared (all-verticals) Unsplash photo instead of the
   gradient mesh + compass silhouette. Same structure as blog.css's
   .blog-post-hero--photo. */
.legal-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.legal-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Flat, always-dark tint (not a gradient) so the white title/sub stay
       readable regardless of how bright the underlying photo is. */
    background: rgba(5, 15, 20, 0.5);
    pointer-events: none;
}

/* Shorter hero for the photo variant — matches blog.css's 34vh
   .blog-post-hero--photo/.blog-index-hero treatment. The 50vh gradient
   height above was sized for the animated mesh + compass silhouette; at
   that height a photo reads as an oversized banner. */
.legal-hero--photo {
    min-height: 34vh;
}

.legal-hero--photo .legal-hero-content {
    padding: clamp(32px, 5vh, 64px) 24px clamp(24px, 4vh, 48px);
    max-width: 900px;
}

/* Smaller title in the photo variant — the 54px size was sized for the
   taller 50vh gradient hero; at 34vh it reads oversized against the photo,
   same rationale as .blog-post-hero--photo .blog-post-h1. */
.legal-hero--photo .legal-h1 {
    font-size: clamp(22px, 3.2vw, 36px);
}

/* Matches blog.css's .blog-index-sub size — the 15-18px size above was
   sized for the taller 50vh gradient hero. */
.legal-hero--photo .legal-hero-sub {
    font-size: clamp(14px, 1.3vw, 16px);
    max-width: 760px;
}

/* Scroll hint arrow */
.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2.4s ease-in-out infinite;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.scroll-hint:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.scroll-arrow {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(255, 255, 255, 0.65);
    border-bottom: 2px solid rgba(255, 255, 255, 0.65);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.65; }
    50%       { transform: translateX(-50%) translateY(9px); opacity: 1; }
}

.legal-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: clamp(80px, 12vh, 140px) 24px clamp(60px, 8vh, 100px);
    max-width: 780px;
    width: 100%;
}

.legal-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: rgba(201, 166, 97, 0.95);
    margin-bottom: 16px;
}

.legal-h1 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.8vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.5px;
    margin: 0 0 20px;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.legal-hero-sub {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 400;
    opacity: 0.75;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 520px;
}

/* ============================================================
   BODY CONTENT
   ============================================================ */

.legal-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    width: 100%;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    color: var(--charcoal);
    margin: 48px 0 18px;
    line-height: 1.2;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 32px 0 12px;
}

.legal-content h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: #3D4F58;
    margin: 24px 0 10px;
}

.legal-content p {
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--slate-gray);
    line-height: 1.75;
    margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--slate-gray);
    line-height: 1.75;
    margin: 0 0 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content strong {
    color: var(--charcoal);
}

.legal-content a {
    color: var(--topographic-teal);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 122, 140, 0.25);
    transition: border-color 0.2s ease;
}

.legal-content a:hover {
    border-bottom-color: var(--topographic-teal);
}

.legal-content hr {
    border: none;
    border-top: 1px solid var(--mist);
    margin: 40px 0;
}

/* Table */
.legal-table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 14px;
}

.legal-content th {
    background: var(--parchment-cream);
    font-weight: 700;
    color: var(--charcoal);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--mist);
}

.legal-content td {
    padding: 10px 16px;
    color: var(--slate-gray);
    border-bottom: 1px solid var(--mist);
    line-height: 1.55;
}

.legal-disclaimer {
    font-size: 14px !important;
    color: var(--muted-text) !important;
    margin-top: 40px !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
    .legal-hero-content {
        padding: 0 20px;
    }

    .legal-content h2 {
        margin-top: 36px;
    }
}

/* ============================================================
   LARGE SCREENS — same fix as blog.css's post page: the clamp()
   sizes above stop growing around an ~1980px viewport, and the
   container/content widths are flat px values with no scaling at
   all, so the reading column shrinks into a narrow island on very
   wide monitors. Picks growth back up right where the clamps above
   plateau. Threshold raised from 1140px to 1980px 2026-08-06 — 1140px
   was catching ordinary maximized laptop/desktop browser widths
   (1280-1536px range), making body text/headings look oversized on
   completely typical screens, not just genuinely wide monitors.
   ============================================================ */
@media (min-width: 1980px) {
    .legal-container {
        max-width: 1320px;
    }

    .legal-hero-content {
        max-width: 900px;
    }

    .legal-content {
        max-width: 900px;
    }

    .legal-h1 {
        font-size: 64px;
    }

    .legal-content h2 {
        font-size: 34px;
    }

    .legal-content h3 {
        font-size: 21px;
    }

    .legal-content p,
    .legal-content ul,
    .legal-content ol {
        font-size: 17px;
    }
}

/* ============================================================
   VERY LARGE SCREENS — 4K / ultrawide
   Same rationale as the equivalent block in home.css. The reading
   column (.legal-content) only grows slightly — a legal document
   shouldn't widen to fill a 4K display, that would blow past a
   comfortable line length. The hero title/container get the bigger
   bump since that's short display text, not paragraphs.
   ============================================================ */
@media (min-width: 2560px) {
    .legal-container {
        max-width: 1680px;
    }

    .legal-hero-content {
        max-width: 1100px;
    }

    .legal-content {
        max-width: 960px;
    }

    .legal-h1 {
        font-size: 76px;
    }

    .legal-content h2 {
        font-size: 38px;
    }

    .legal-content h3 {
        font-size: 23px;
    }

    .legal-content p,
    .legal-content ul,
    .legal-content ol {
        font-size: 18px;
    }
}

/* ============================================================
   ACCESSIBILITY — Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    /* Disable mesh gradient drift animation */
    .legal-hero-overlay {
        animation: none;
    }

    /* Disable scroll-bounce arrow animation */
    .scroll-hint {
        animation: none;
    }
}
