/* ============================================================
   privacy-policy.css — Legal page styles
   ============================================================ */

/* 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, #0A7A8C 0%, #2D5F3F 100%); padding: 0; }
section.legal-body { position: relative; background: #ffffff; 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;
}

/* 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: #fff;
    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: #fff;
    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: #2C3539;
    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: #2C3539;
    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: #5A6C75;
    line-height: 1.75;
    margin: 0 0 16px;
}

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

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

.legal-content strong {
    color: #2C3539;
}

.legal-content a {
    color: #0A7A8C;
    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: #0A7A8C;
}

.legal-content hr {
    border: none;
    border-top: 1px solid #E8EBED;
    margin: 40px 0;
}

/* Definition list (glossary) */
.legal-content dt {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: #2C3539;
    margin-top: 16px;
}

.legal-content dd {
    font-family: var(--font-body);
    font-size: 15.5px;
    color: #5A6C75;
    line-height: 1.75;
    margin: 4px 0 0 0;
    padding-left: 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: #F4F1E8;
    font-weight: 700;
    color: #2C3539;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #E8EBED;
}

.legal-content td {
    padding: 10px 16px;
    color: #5A6C75;
    border-bottom: 1px solid #E8EBED;
    line-height: 1.55;
}

.legal-disclaimer {
    font-size: 14px !important;
    color: #8A969D !important;
    margin-top: 40px !important;
}

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

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

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