:root {
    /* ===== Palette (mirrors the app asset catalog) ===== */
    --accent: #ec875a;
    --accent-light: #d98c6b;
    --back: #2d2527;
    --bg: #080e0c; /* page background from the mockup */
    --card: #1e1e1e;
    --card-selected: #242324;
    --delete: #fd6460;
    --text: #ffffff;
    --text-disabled: #787878;
    --text-medium: #a8a9a8;
    --text-on-accent: #2d2527;
    --text-on-surface: #2f2e2e;

    --font-pixel: "Press Start 2P", monospace;
    --font-mono: "Google Sans Code", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--text-on-accent);
}

/* ============ Typography helpers ============ */
.pixel {
    font-family: var(--font-pixel);
    line-height: 1.6;
}
.mono {
    font-family: var(--font-mono);
}
.txt-med {
    color: var(--text-medium);
}
.accent {
    color: var(--accent);
}

.h-hero {
    font-size: clamp(1.4rem, 4.5vw, 2.6rem);
}
.h-xl {
    font-size: clamp(1.05rem, 3vw, 1.7rem);
}
.h-lg {
    font-size: clamp(0.9rem, 2.4vw, 1.35rem);
}
.h-md {
    font-size: clamp(0.75rem, 1.8vw, 1rem);
}

/* Inline code chips in copy */
.chip {
    display: inline-block;
    background: var(--text);
    color: var(--text-on-accent);
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 0.05em 0.45em;
    border-radius: 4px;
}

/* Rotating chip (cycles through what App UFO preserves) */
.chip-rotate {
    min-width: 11.5ch;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    will-change: transform, opacity;
}
.chip-rotate.is-swapping {
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
    opacity: 0;
    transform: translateY(-5px);
}
@media (prefers-reduced-motion: reduce) {
    .chip-rotate.is-swapping {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* ============ Header ============ */
.site-header {
    padding: 2rem 0 1rem;
    text-align: center;
}
.site-header .logo {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.site-header .logo .ufo {
    font-size: 1.6rem;
}
.site-header .logo-img {
    height: 32px;
    width: auto;
    display: block;
}

/* ============ Hero ============ */
.hero {
    position: relative;
    padding: 3rem 0 0;
    text-align: center;
}
.hero-copy {
    position: relative;
    z-index: 2;
}
.hero p.lede {
    max-width: 560px;
    margin: 1.4rem auto 1.6rem;
    color: var(--text-medium);
    font-size: 0.85rem;
}

/* ============ Hero starfield ============ */
.hero-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-stars .star {
    position: absolute;
    display: block;
    background: var(--text);
    border-radius: 50%;
    opacity: .15;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, .45);
    animation: star-flicker ease-in-out infinite;
}

@keyframes star-flicker {
    0%, 100% { opacity: .15; transform: scale(.75); }
    50%      { opacity: 1;   transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-stars .star {
        animation: none;
        opacity: .55;
    }
}

.appstore-badge {
    display: inline-flex;
    text-decoration: none;
    transition:
        transform 0.2s,
        opacity 0.2s;
}
.appstore-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.appstore-badge img {
    height: 44px;
    width: auto;
    display: block;
}

/* Mountains + grid backdrop */
.hero-scene {
    position: relative;
    margin-top: 2.5rem;
    min-height: 380px;
}
.hero-scene .mountains {
    position: absolute;
    inset: 0;
    background: var(--hero-bg-img) center 35% / cover no-repeat;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0,
        #000 12%,
        #000 82%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0,
        #000 12%,
        #000 82%,
        transparent 100%
    );
}

/* Screenshot frame (orange gradient bezel) */
.shot-frame {
    position: relative;
    z-index: 2;
    border-radius: 22px;
    padding: 10px;
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-light) 45%,
        #f7b28c 100%
    );
    box-shadow:
        0 25px 80px rgba(236, 135, 90, 0.35),
        0 5px 25px rgba(0, 0, 0, 0.6);
    max-width: 760px;
    margin: 0 auto;
}
.shot-frame .shot-inner {
    border-radius: 14px;
    overflow: hidden;
    background: #121212;
}
.shot-frame .app-shot {
    display: block;
    width: 100%;
    height: auto;
}

/* Tutorial video embed — reuses the same gradient bezel language as .shot-frame */
.video-frame {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 22px;
    padding: 10px;
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-light) 45%,
        #f7b28c 100%
    );
    box-shadow:
        0 25px 80px rgba(236, 135, 90, 0.35),
        0 5px 25px rgba(0, 0, 0, 0.6);
}
.video-frame-inner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #121212;
    aspect-ratio: 16 / 9;
}
.video-frame-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.tutorial p {
    color: var(--text-medium);
    font-size: 0.85rem;
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

/* ============ Saturated / globe section ============ */
.section {
    padding: 5rem 0;
    position: relative;
}

/* Star Wars-style crawl for the intro lines — driven by scroll via GSAP/ScrollTrigger below.
           The tilt is fixed on .crawl-tilt; only .crawl-text translates, so it recedes straight into
           the distance instead of rotating through the camera (which caused flipping). */
.crawl-wrap {
    position: relative;
    max-width: 920px;
    height: clamp(420px, 70vh, 620px);
    margin: 0 auto;
    overflow: hidden;
    perspective: 600px;
    perspective-origin: 50% 15%;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 18%,
        #000 45%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 18%,
        #000 45%
    );
}
.crawl-tilt {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform-origin: 50% 100%;
    transform: rotateX(42deg);
}
.crawl-text {
    position: absolute;
    inset: auto 0 0 0;
    text-align: center;
    /* Static fallback position (near/large) before GSAP/ScrollTrigger takes over */
    transform: translateY(0);
}
.crawl-text p {
    font-family: var(--font-pixel);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 2.1;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(236, 135, 90, 0.45);
    margin: 0 0 1.3rem;
}
@media (prefers-reduced-motion: reduce) {
    .crawl-wrap {
        height: auto;
        overflow: visible;
        perspective: none;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .crawl-tilt {
        position: static;
        transform: none;
    }
    .crawl-text {
        position: static;
        transform: none;
    }
    .crawl-text p {
        font-size: clamp(1.1rem, 3vw, 1.5rem);
        text-shadow: none;
    }
}
@media (max-width: 767.98px) {
    .crawl-wrap {
        height: clamp(320px, 60vh, 460px);
    }
    .crawl-text p {
        font-size: clamp(1.1rem, 6vw, 1.7rem);
        line-height: 1.9;
    }
}
.globe-wrap img {
    width: min(480px, 85vw);
    height: auto;
    display: block;
    margin: 2.5rem auto;
}

/* Chat-style message with an avatar for the "localisation is expensive" line */
.chat-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}
.chat-avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    background: var(--card);
}
.chat-avatar-fallback {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--accent);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.chat-bubble {
    position: relative;
    background: var(--card);
    border: 2px solid var(--accent);
    border-radius: 4px 16px 16px 16px;
    padding: 1rem 1.2rem;
}
.chat-label {
    display: block;
    color: var(--accent);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.45rem;
}
.chat-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text);
}
@media (max-width: 575.98px) {
    .chat-alert {
        max-width: 420px;
        gap: 0.7rem;
    }
    .chat-avatar,
    .chat-avatar-fallback {
        width: 38px;
        height: 38px;
    }
}

.cursor::after {
    content: "_";
    animation: blink 1s steps(1) infinite;
}
@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ============ Orange "Introducing" band — retro arcade screen ============ */
.introducing {
    position: relative;
    overflow: hidden;
    background:
        var(--grid-bg-img) center / cover no-repeat,
        var(--accent);
    color: var(--text-on-accent);
    padding: 6rem 0 0;
    text-align: center;
}
/* CRT scanlines laid over the whole section */
.introducing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.18) 0px,
        rgba(0, 0, 0, 0.18) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}
.introducing .container {
    position: relative;
    z-index: 2;
}

.introducing h2 {
    color: #fff;
    text-shadow: 2px 2px 0 rgba(45, 37, 39, 0.35);
}

/* Big pixel-art style title, chunky layered drop shadow instead of blur */
.introducing .brand {
    display: inline-block;
    color: #fff;
    font-size: clamp(1.6rem, 6vw, 3rem);
    letter-spacing: 0.06em;
    line-height: 1.4;
    margin: 0.5rem 0 1.8rem;
    text-shadow:
        3px 3px 0 var(--back),
        6px 6px 0 rgba(45, 37, 39, 0.45);
    animation: title-flicker 3.2s steps(1) infinite;
}
@keyframes title-flicker {
    0%,
    92%,
    100% {
        opacity: 1;
    }
    93% {
        opacity: 0.82;
    }
    94% {
        opacity: 1;
    }
    96% {
        opacity: 0.88;
    }
    97% {
        opacity: 1;
    }
}

/* One continuous black panel (icon + brand + feature list combined),
           flush with the bottom of the section instead of two separate floating boxes.
           Stepped corners give it an 8-bit HUD-window silhouette instead of a rounded card. */
.intro-card {
    position: relative;
    z-index: 2;
    max-width: 360px;
    margin: 2.5rem auto 2.5rem;
    padding: 2rem 2rem 2.5rem;
    background: #0d0d0d;
    box-shadow: 0 -18px 40px rgba(45, 37, 39, 0.35);
    clip-path: polygon(
        0 10px,
        10px 10px,
        10px 0,
        calc(100% - 10px) 0,
        calc(100% - 10px) 10px,
        100% 10px,
        100% 100%,
        0 100%
    );
}
.intro-card::before {
    /* pixel-notched accent border, drawn a few px inside the panel */
    content: "";
    position: absolute;
    inset: 6px;
    border: 2px solid var(--accent);
    clip-path: polygon(
        0 8px,
        8px 8px,
        8px 0,
        calc(100% - 8px) 0,
        calc(100% - 8px) 8px,
        100% 8px,
        100% 100%,
        0 100%
    );
    pointer-events: none;
}
.app-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

/* Retro game-menu list: left-aligned rows with a blinking triangle cursor,
           like a Pokémon/RPG selection menu */
.feature-pill {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text);
    text-align: left;
    max-width: 260px;
    margin-inline: auto;
}
.feature-pill li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.68rem;
    font-family: var(--font-pixel);
    padding: 0.6rem 0;
}
.feature-pill .tri {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 0.6rem;
    animation: tri-blink 0.9s steps(1) infinite;
}
.feature-pill li:nth-child(2) .tri {
    animation-delay: 0.12s;
}
.feature-pill li:nth-child(3) .tri {
    animation-delay: 0.24s;
}
.feature-pill li:nth-child(4) .tri {
    animation-delay: 0.36s;
}
@keyframes tri-blink {
    50% {
        opacity: 0.12;
    }
}

@media (prefers-reduced-motion: reduce) {
    .introducing .brand {
        animation: none;
    }
    .feature-pill .tri {
        animation: none;
    }
}

/* ============ How it works ============ */
.how .shot-frame {
    max-width: 520px;
}
.how h3 {
    margin-bottom: 1rem;
}
.how p {
    color: var(--text-medium);
    font-size: 0.85rem;
}

/* ============ Developer card ============ */
.dev-card {
    background: #fff;
    color: var(--text-on-surface);
    border-radius: 26px;
    padding: 2.2rem 2.4rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.95rem;
}
.dev-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--card-selected);
    background: var(--card);
}
.dev-avatar-fallback {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--card);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* ============ Pricing ============ */
.pricing {
    text-align: center;
}
.pricing .sub {
    color: var(--text-medium);
    font-size: 0.8rem;
    margin-top: 1rem;
}

.price-card {
    border: 2px solid var(--accent);
    border-radius: 22px;
    padding: 2rem 1.8rem;
    height: 100%;
    text-align: left;
    background: rgba(30, 30, 30, 0.35);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}
.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(236, 135, 90, 0.18);
}
.price-card .price {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}
.price-card .period {
    display: block;
    font-size: 0.65rem;
    margin-top: 0.7rem;
    color: var(--text);
}
.price-card ul {
    padding: 0;
    margin: 1.6rem 0 0;
}
.price-card li {
    list-style: none;
    display: flex;
    gap: 0.7rem;
    align-items: center;
    font-size: 0.78rem;
    padding: 0.4rem 0;
    color: var(--text);
}
.price-card li::before {
    content: "";
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    background-color: #fff;
    -webkit-mask: var(--star-icon-img) center / contain no-repeat;
    mask: var(--star-icon-img) center / contain no-repeat;
}

.or-divider {
    margin: 3.5rem 0 0;
}

/* ============ Footer ============ */
.site-footer {
    padding: 3rem 0 2.5rem;
    text-align: center;
    color: var(--text-disabled);
    font-size: 0.75rem;
}
.site-footer a {
    color: var(--text-medium);
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--accent);
}

/* ============ Scroll reveal ============ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .cursor::after {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 3.5rem 0;
    }
    .introducing {
        padding: 4rem 0 0;
    }
    .dev-card {
        padding: 1.6rem;
        font-size: 0.85rem;
    }
    .hero-scene {
        min-height: 0;
    }
}

/* ============ Footer ============ */
.site-footer {
    padding: 4rem 0 0;
    text-align: center;
}

/* Stepped 8-bit HUD panel, same silhouette language as .intro-card,
   flush against the bottom of the page */
.footer-panel {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding: 2.2rem 2rem 2rem;
}

/* CRT scanlines over the panel */
.footer-panel::after {
    content: "";
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.footer-icon {
    width: 44px;
    height: 44px;
    display: block;
    margin: 0 auto 0.8rem;
    image-rendering: pixelated;
}

.footer-brand {
    display: block;
    color: var(--text);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-shadow: 2px 2px 0 rgba(236, 135, 90, 0.35);
    margin-bottom: 1.4rem;
}

/* Game-menu style links: ▶ cursor appears on hover/focus */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 2rem;
    margin-bottom: 1.6rem;
    position: relative;
    z-index: 1;
}
.footer-nav a {
    position: relative;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.6rem;
    padding: 0.35rem 0;
    transition: color 0.15s;
}
.footer-nav a::before {
    content: "▶";
    position: absolute;
    left: -1.1em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.55em;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--accent);
}
.footer-nav a:hover::before,
.footer-nav a:focus-visible::before {
    opacity: 1;
    animation: tri-blink 0.9s steps(1) infinite;
}

.footer-copy {
    margin: 0;
    color: var(--text-disabled);
    font-size: 0.72rem;
}

@media (prefers-reduced-motion: reduce) {
    .footer-nav a:hover::before {
        animation: none;
    }
}
@media (max-width: 575.98px) {
    .footer-nav {
        gap: 0.3rem 1.4rem;
    }
    .footer-panel {
        max-width: 100%;
    }
}

/* Retro download button — stepped 8-bit silhouette, same language as the intro/footer panels */
.retro-btn {
    position: relative;
    display: block;
    text-align: center;
    margin-top: 1.8rem;
    padding: 0.85rem 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--text-on-accent);
    text-decoration: none;
    background: var(--accent);
    clip-path: polygon(
        0 6px,
        6px 6px,
        6px 0,
        calc(100% - 6px) 0,
        calc(100% - 6px) 6px,
        100% 6px,
        100% 100%,
        0 100%
    );
    box-shadow: 3px 3px 0 var(--back);
    transition:
        transform 0.15s,
        box-shadow 0.15s,
        background 0.15s;
}
.retro-btn:hover,
.retro-btn:focus-visible {
    background: var(--accent-light);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--back);
}
.retro-btn:active {
    transform: translate(0, 0);
    box-shadow: 1px 1px 0 var(--back);
}

/* Fine print under the pricing tiers */
.price-footnote {
    margin-top: 2.5rem;
    color: var(--text-disabled);
    font-size: 0.68rem;
}



/* ============ Final CTA ============ */
.cta-section { padding-top: 2rem; }

.cta-panel {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    background: #0d0d0d;
    clip-path: polygon(
        0 14px, 14px 14px, 14px 0,
        calc(100% - 14px) 0, calc(100% - 14px) 14px, 100% 14px,
        100% calc(100% - 14px), calc(100% - 14px) calc(100% - 14px), calc(100% - 14px) 100%,
        14px 100%, 14px calc(100% - 14px), 0 calc(100% - 14px)
    );
    overflow: hidden;
}
/* pixel-notched accent border, same family as .intro-card / .footer-panel */
.cta-panel::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 2px solid var(--accent);
    clip-path: polygon(
        0 10px, 10px 10px, 10px 0,
        calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px,
        100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%,
        10px 100%, 10px calc(100% - 10px), 0 calc(100% - 10px)
    );
    pointer-events: none;
}
/* CRT scanlines, matching .introducing / .footer-panel treatment */
.cta-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, .03) 0px,
        rgba(255, 255, 255, .03) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
}

.cta-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: .55rem;
    letter-spacing: .2em;
    color: var(--accent);
    margin-bottom: 1.4rem;
}

.cta-title {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.cta-sub {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 0 auto 2rem;
    color: var(--text-medium);
    font-size: .85rem;
}

.cta-store-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
}

.cta-insert-coin {
    position: relative;
    z-index: 1;
    margin: 1.8rem 0 0;
    font-size: .55rem;
    letter-spacing: .08em;
    color: var(--text-disabled);
}
.cta-insert-coin .blink-slow {
    display: inline-block;
    color: var(--accent);
    animation: tri-blink 1.1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
    .cta-insert-coin .blink-slow { animation: none; }
}

@media (max-width: 575.98px) {
    .cta-panel { padding: 2.5rem 1.5rem; }
}





/* ============ Legal / policy pages ============ */
.legal-page {
    padding: 6rem 0 5rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}
.legal-header h1 {
    margin-bottom: .6rem;
}
.legal-header .legal-updated {
    color: var(--text-disabled);
    font-size: .7rem;
}

.legal-panel {
    max-width: 820px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 18px;
    padding: 2.8rem clamp(1.5rem, 5vw, 3.5rem);
}

/* Body copy tuned for long-form reading, not the pixel display face */
.legal-panel h2 {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin: 2.6rem 0 1rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.legal-panel h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.legal-panel h5 {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .85rem;
    color: var(--accent);
    margin: 1.6rem 0 .6rem;
}
.legal-panel p {
    color: var(--text-medium);
    font-size: .82rem;
    line-height: 1.85;
    margin-bottom: 1.1rem;
}
.legal-panel ul,
.legal-panel ol {
    color: var(--text-medium);
    font-size: .82rem;
    line-height: 1.85;
    padding-left: 1.4rem;
    margin-bottom: 1.4rem;
}
.legal-panel li { margin-bottom: .5rem; }
.legal-panel li b,
.legal-panel li strong {
    color: var(--text);
}
.legal-panel strong { color: var(--text); }
.legal-panel a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(236,135,90,.4);
    text-underline-offset: 2px;
}
.legal-panel a:hover { color: var(--accent-light); }

/* Footnote markers/refs */
.legal-panel sup {
    font-size: .65em;
    color: var(--accent);
}
.legal-panel sup a { text-decoration: none; }

@media (max-width: 575.98px) {
    .legal-page { padding: 4rem 0 3rem; }
    .legal-panel { padding: 2rem 1.4rem; border-radius: 14px; }
}