:root {
    --bg: #f7f4ef;
    --surface: #ffffff;
    --surface-soft: #fbfaf8;
    --text: #171717;
    --muted: #626262;
    --line: #e8e1d8;
    --accent: #c92828;
    --accent-dark: #9f1f1f;
    --shadow: 0 24px 80px rgba(23, 23, 23, 0.08);
    --radius-xl: 28px;
    --radius-md: 18px;
    --max: 1040px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(201, 40, 40, 0.12), transparent 34rem),
        linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-underline-offset: 0.18em;
}

.legal-header {
    max-width: var(--max);
    margin: 0 auto;
    padding: 26px 22px 0;
}

.legal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.brand-logo-mark {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.back-link:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 40, 40, 0.35);
    background: #fff;
}

.legal-shell {
    max-width: var(--max);
    margin: 0 auto;
    padding: 54px 22px 80px;
}

.legal-hero {
    padding: clamp(34px, 6vw, 72px);
    border: 1px solid rgba(232, 225, 216, 0.82);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    text-align: center;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: rgba(201, 40, 40, 0.08);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    max-width: 840px;
    margin: 22px auto 16px;
    font-size: clamp(2.25rem, 6vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.legal-lead {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.legal-meta span {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.legal-content {
    margin-top: 24px;
    padding: clamp(26px, 4vw, 54px);
    border: 1px solid rgba(232, 225, 216, 0.9);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: 0 14px 50px rgba(23, 23, 23, 0.05);
}

.legal-section {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.legal-section:first-child {
    padding-top: 0;
    border-top: 0;
}

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

h2 {
    margin: 0 0 12px;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    line-height: 1.14;
    letter-spacing: -0.035em;
}

p {
    margin: 0 0 14px;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin: 12px 0 0;
    padding-left: 1.35rem;
}

li {
    margin: 7px 0;
}

.contact-box {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.contact-box strong {
    display: block;
    margin-bottom: 3px;
}

.legal-note {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(201, 40, 40, 0.07);
    color: #5f2626;
    font-size: 0.96rem;
}

.legal-footer {
    padding: 28px 22px 40px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.legal-footer-links a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

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

    .legal-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-shell {
        padding-top: 34px;
        padding-bottom: 54px;
    }

    .legal-hero,
    .legal-content {
        border-radius: 22px;
    }
}
