:root {
    --primary: #ff665b;
    --teal: #079da6;
    --teal-dark: #087e87;
    --orange: #ff9b20;
    --ink: #16233b;
    --muted: #5e6a78;
    --line: #dce8ea;
    --soft: #edf9fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, #dff7f7 0, transparent 35%),
        linear-gradient(145deg, #f4fbfb, #fffaf2);
    font-family: Roboto, Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: var(--teal-dark);
}

.legal-header {
    min-height: 76px;
    padding: 16px max(24px, calc((100% - 1120px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.legal-brand {
    color: var(--teal-dark);
    font-size: 1.25rem;
    font-weight: 900;
    text-decoration: none;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.legal-nav a {
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.legal-container {
    width: min(920px, calc(100% - 32px));
    margin: 36px auto;
}

.back-link {
    display: inline-flex;
    margin-bottom: 16px;
    font-weight: 700;
    text-decoration: none;
}

.legal-document {
    padding: clamp(24px, 5vw, 58px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 22px 65px rgba(8, 126, 135, .1);
}

.legal-document h1 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    line-height: 1.15;
}

.legal-document h2 {
    margin: 34px 0 10px;
    color: var(--teal-dark);
    font-size: 1.25rem;
    line-height: 1.35;
}

.legal-document p,
.legal-document li {
    color: #354555;
}

.legal-document ul {
    padding-left: 22px;
}

.legal-document li + li {
    margin-top: 7px;
}

.legal-date {
    margin: 0 0 28px;
    color: var(--muted) !important;
    font-size: .86rem;
}

.legal-footer {
    padding: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: var(--muted);
    font-size: .82rem;
}

.legal-footer a {
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 680px) {
    .legal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-nav {
        gap: 8px 14px;
    }

    .legal-container {
        margin-top: 22px;
    }

    .legal-document {
        border-radius: 18px;
    }
}
