:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #172033;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    --legal-accent: #27a77b;
    --legal-glow: rgba(39, 167, 123, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 12% 8%, var(--legal-glow), transparent 30rem),
        #f5f7fb;
}

body[data-policy="privacy"] {
    --legal-accent: #6884ed;
    --legal-glow: rgba(104, 132, 237, 0.19);
}

body[data-policy="refund"] {
    --legal-accent: #e59242;
    --legal-glow: rgba(229, 146, 66, 0.19);
}

a {
    color: inherit;
    text-decoration: none;
}

.legal-header {
    display: flex;
    width: min(calc(100% - 40px), 1160px);
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    border-bottom: 1px solid rgba(23, 32, 51, 0.1);
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #131a2b;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.legal-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.legal-brand span span {
    color: var(--legal-accent);
}

.legal-home-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #384258;
    font-size: 13px;
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease;
}

.legal-home-link:hover {
    transform: translateY(-2px);
    border-color: var(--legal-accent);
}

.legal-main {
    display: grid;
    min-height: calc(100vh - 165px);
    place-items: center;
    padding: 72px 20px;
}

.legal-card {
    position: relative;
    width: min(100%, 880px);
    min-height: 480px;
    padding: clamp(32px, 7vw, 76px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.83);
    box-shadow: 0 30px 90px rgba(33, 43, 67, 0.1);
    text-align: center;
    backdrop-filter: blur(16px);
}

.legal-card::before,
.legal-card::after {
    position: absolute;
    z-index: 0;
    border: 1px solid var(--legal-glow);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.legal-card::before {
    top: -138px;
    right: -72px;
    width: 290px;
    height: 290px;
}

.legal-card::after {
    bottom: -192px;
    left: -100px;
    width: 360px;
    height: 360px;
}

.legal-card-content {
    position: relative;
    z-index: 1;
}

.legal-eyebrow {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--legal-glow);
    border-radius: 999px;
    background: #fff;
    color: var(--legal-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.legal-eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--legal-accent);
    box-shadow: 0 0 0 4px var(--legal-glow);
    content: "";
}

.legal-title {
    margin: 23px 0 0;
    color: #1a2235;
    font-size: clamp(29px, 5vw, 46px);
    font-weight: 800;
    letter-spacing: -0.055em;
}

.legal-summary {
    max-width: 540px;
    margin: 13px auto 0;
    color: #6b7487;
    font-size: 15px;
    line-height: 1.7;
}

.legal-soon {
    margin: 30px 0 12px;
    background: linear-gradient(115deg, var(--legal-accent), #16213c 88%);
    background-clip: text;
    color: transparent;
    font-size: clamp(92px, 19vw, 176px);
    font-weight: 950;
    letter-spacing: -0.09em;
    line-height: 0.9;
    -webkit-background-clip: text;
}

.legal-note {
    margin: 19px 0 0;
    color: #8b93a3;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.legal-footer {
    display: flex;
    width: min(calc(100% - 40px), 1160px);
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    border-top: 1px solid rgba(23, 32, 51, 0.1);
    color: #798195;
    font-size: 12px;
}

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.legal-footer a:hover {
    color: var(--legal-accent);
}

@media (max-width: 600px) {
    .legal-header,
    .legal-footer {
        width: min(calc(100% - 32px), 1160px);
    }

    .legal-header {
        min-height: 70px;
    }

    .legal-brand {
        font-size: 16px;
    }

    .legal-home-link {
        min-height: 38px;
        padding: 0 12px;
        font-size: 12px;
    }

    .legal-main {
        min-height: calc(100vh - 140px);
        padding: 42px 16px;
    }

    .legal-card {
        min-height: 400px;
        padding: 42px 24px;
        border-radius: 24px;
    }

    .legal-footer {
        min-height: 70px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 14px 0;
    }

    .legal-footer-links {
        gap: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
