@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --legal-primary: #FF6B2B;
    --legal-primary-dark: #E55520;
    --legal-accent: #06D6A0;
    --legal-warning: #FFD166;
    --legal-bg: #070710;
    --legal-surface: #10111A;
    --legal-card: rgba(20, 22, 32, 0.84);
    --legal-card-strong: rgba(27, 29, 40, 0.96);
    --legal-border: rgba(255, 255, 255, 0.10);
    --legal-border-soft: rgba(255, 255, 255, 0.06);
    --legal-text: #F2F3F8;
    --legal-text-soft: #9B9CB0;
    --legal-text-muted: #66697D;
    --legal-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --legal-shadow-brand: 0 16px 44px rgba(255, 107, 43, 0.22);
    --legal-radius-lg: 26px;
    --legal-radius-md: 18px;
    --legal-radius-sm: 12px;
    --legal-max: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--legal-text);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 107, 43, 0.20), transparent 28%),
        radial-gradient(circle at 100% 18%, rgba(56, 189, 248, 0.14), transparent 24%),
        radial-gradient(circle at 58% 100%, rgba(6, 214, 160, 0.10), transparent 24%),
        linear-gradient(180deg, #08090f 0%, #0d1017 50%, #08090f 100%);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.legal-page {
    position: relative;
    overflow-x: hidden;
}

.legal-page::before,
.legal-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
    opacity: 0.34;
    z-index: 0;
}

.legal-page::before {
    width: 320px;
    height: 320px;
    top: 110px;
    left: -130px;
    background: rgba(255, 107, 43, 0.22);
}

.legal-page::after {
    width: 260px;
    height: 260px;
    right: -90px;
    bottom: 120px;
    background: rgba(6, 214, 160, 0.18);
}

.legal-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 5%;
    backdrop-filter: blur(18px);
    background: rgba(7, 7, 16, 0.76);
    border-bottom: 1px solid var(--legal-border-soft);
}

.legal-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.legal-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--legal-primary), var(--legal-primary-dark));
    box-shadow: var(--legal-shadow-brand);
}

.legal-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--legal-text-soft);
    border: 1px solid var(--legal-border);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.legal-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 107, 43, 0.32);
    color: var(--legal-text);
}

.legal-pill.primary {
    color: #fff;
    border-color: rgba(255, 107, 43, 0.36);
    background: linear-gradient(135deg, var(--legal-primary), var(--legal-primary-dark));
    box-shadow: 0 10px 28px rgba(255, 107, 43, 0.25);
}

.legal-wrap {
    position: relative;
    z-index: 1;
    max-width: var(--legal-max);
    margin: 0 auto;
    padding: 44px 5% 72px;
}

.legal-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 34px;
}

.legal-hero-main,
.legal-hero-side,
.legal-card,
.legal-toc,
.legal-section {
    background: var(--legal-card);
    border: 1px solid var(--legal-border-soft);
    border-radius: var(--legal-radius-lg);
    box-shadow: var(--legal-shadow);
    backdrop-filter: blur(16px);
}

.legal-hero-main {
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.legal-hero-main::before {
    content: '';
    position: absolute;
    inset: auto -10% -35% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 43, 0.18), transparent 66%);
    pointer-events: none;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--legal-primary);
    border: 1px solid rgba(255, 107, 43, 0.24);
    background: rgba(255, 107, 43, 0.10);
    margin-bottom: 18px;
}

.legal-hero h1 {
    margin: 0 0 14px;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.legal-hero p {
    margin: 0;
    color: var(--legal-text-soft);
    font-size: 1rem;
    line-height: 1.78;
    max-width: 720px;
}

.legal-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--legal-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--legal-text-soft);
    font-size: 0.84rem;
    font-weight: 600;
}

.legal-badge strong {
    color: var(--legal-text);
}

.legal-hero-side {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legal-side-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.legal-note {
    padding: 18px;
    border-radius: var(--legal-radius-md);
    border: 1px solid var(--legal-border);
    background: rgba(255, 255, 255, 0.04);
}

.legal-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.legal-note p {
    margin: 0;
    color: var(--legal-text-soft);
    font-size: 0.92rem;
    line-height: 1.7;
}

.legal-note.emphasis {
    background: linear-gradient(180deg, rgba(255, 107, 43, 0.12), rgba(255, 107, 43, 0.06));
    border-color: rgba(255, 107, 43, 0.22);
}

.legal-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 28px;
}

.legal-toc {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 24px;
}

.legal-toc h2 {
    margin: 0 0 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-toc a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--legal-text-soft);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.legal-toc a:hover {
    color: var(--legal-text);
    border-color: rgba(255, 107, 43, 0.24);
    background: rgba(255, 107, 43, 0.08);
    transform: translateX(2px);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.legal-section {
    padding: 28px 30px;
}

.legal-section h2 {
    margin: 0 0 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.legal-section h3 {
    margin: 20px 0 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li {
    color: var(--legal-text-soft);
    font-size: 0.96rem;
    line-height: 1.78;
}

.legal-section p {
    margin: 0 0 14px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 0;
    padding-left: 20px;
}

.legal-highlight {
    border-left: 3px solid rgba(255, 107, 43, 0.52);
    padding: 14px 0 14px 16px;
    margin: 16px 0;
    background: linear-gradient(90deg, rgba(255, 107, 43, 0.08), transparent);
}

.legal-highlight strong {
    color: var(--legal-text);
}

.legal-list-tight li + li {
    margin-top: 8px;
}

.legal-footer {
    max-width: var(--legal-max);
    margin: 0 auto;
    padding: 0 5% 48px;
    position: relative;
    z-index: 1;
}

.legal-footer-card {
    padding: 24px 26px;
    border-radius: var(--legal-radius-lg);
    border: 1px solid var(--legal-border-soft);
    background: var(--legal-card-strong);
    box-shadow: var(--legal-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.legal-footer-card p {
    margin: 0;
    color: var(--legal-text-soft);
    font-size: 0.92rem;
    line-height: 1.7;
}

.legal-footer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-inline-link {
    color: var(--legal-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1080px) {
    .legal-hero,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
        top: auto;
    }
}

@media (max-width: 720px) {
    .legal-nav {
        padding: 16px 18px;
    }

    .legal-wrap {
        padding: 28px 18px 56px;
    }

    .legal-hero-main,
    .legal-hero-side,
    .legal-section,
    .legal-toc {
        padding: 22px;
        border-radius: 22px;
    }

    .legal-footer {
        padding: 0 18px 36px;
    }

    .legal-footer-card {
        padding: 20px;
    }
}
