:root {
    --ap-bg: #071426;
    --ap-panel: #0d1d35;
    --ap-panel-soft: #122542;
    --ap-text: #f7f9fc;
    --ap-muted: #aebbd0;
    --ap-blue: #73a2ff;
    --ap-cyan: #38d6e8;
    --ap-border: rgba(255,255,255,.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(60,118,255,.18), transparent 32rem),
        radial-gradient(circle at 100% 20%, rgba(56,214,232,.08), transparent 30rem),
        var(--ap-bg);
    color: var(--ap-text);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

a {
    color: var(--ap-cyan);
}

.ap-legal-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.ap-legal-header {
    padding: 28px 0;
    border-bottom: 1px solid var(--ap-border);
}

.ap-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ap-brand-name {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 1.15rem;
}

.ap-brand-expression {
    color: var(--ap-muted);
    font-size: .78rem;
    letter-spacing: .16em;
}

.ap-legal-hero {
    padding: 78px 0 44px;
}

.ap-eyebrow {
    margin: 0 0 12px;
    color: var(--ap-blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.ap-intro {
    max-width: 760px;
    margin: 26px 0 0;
    color: var(--ap-muted);
    font-size: 1.08rem;
}

.ap-updated {
    display: inline-flex;
    margin-top: 24px;
    padding: 8px 13px;
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    color: var(--ap-muted);
    font-size: .82rem;
}

.ap-legal-card {
    margin-bottom: 80px;
    padding: clamp(24px, 5vw, 56px);
    background: linear-gradient(
        145deg,
        rgba(18,37,66,.96),
        rgba(10,27,49,.96)
    );
    border: 1px solid var(--ap-border);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,.20);
}

.ap-legal-card section + section {
    margin-top: 42px;
    padding-top: 36px;
    border-top: 1px solid var(--ap-border);
}

h2 {
    margin: 0 0 13px;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    letter-spacing: -.025em;
}

p, li {
    color: #d6dfec;
}

ul {
    padding-left: 22px;
}

.ap-notice {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 3px solid var(--ap-blue);
    background: rgba(115,162,255,.07);
    border-radius: 4px 14px 14px 4px;
}

.ap-legal-footer {
    padding: 30px 0 46px;
    border-top: 1px solid var(--ap-border);
    color: var(--ap-muted);
    font-size: .88rem;
}

.ap-legal-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.ap-legal-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ap-legal-links a {
    color: var(--ap-muted);
    text-decoration: none;
}

.ap-legal-links a:hover {
    color: #fff;
}

@media (max-width: 640px) {
    .ap-brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .ap-legal-hero {
        padding-top: 54px;
    }

    .ap-legal-card {
        border-radius: 20px;
    }
}
