:root {
    --legal-green: #073f30;
    --legal-green-2: #126148;
    --legal-lime: #b9e85d;
    --legal-gold: #d9a928;
    --legal-bg: #f3f7f4;
    --legal-card: #ffffff;
    --legal-text: #18362e;
    --legal-muted: #667a73;
    --legal-border: #d8e5de;
    --legal-danger: #9e321f;
    --legal-shadow: 0 18px 54px rgba(7, 63, 48, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.legal-page {
    margin: 0;
    min-height: 100vh;
    color: var(--legal-text);
    background:
        radial-gradient(circle at 12% 0%, rgba(185, 232, 93, .14), transparent 28rem),
        linear-gradient(180deg, #edf5f0 0%, var(--legal-bg) 26%, #fafcfb 100%);
    font: 16px/1.68 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-header {
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(5, 52, 39, .97);
    color: #fff;
}

.legal-header__inner {
    width: min(1120px, calc(100% - 32px));
    min-height: 104px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: inherit;
    text-decoration: none;
}

.legal-brand img { width: min(210px, 48vw); height: auto; display: block; }
.legal-brand span { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.28); font-size: .82rem; color: rgba(255,255,255,.72); }

.legal-header__link {
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.08);
    font-weight: 800;
    text-decoration: none;
}

.legal-shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 64px; }
.legal-hero { margin-bottom: 24px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--legal-green), var(--legal-green-2)); box-shadow: var(--legal-shadow); }
.legal-kicker { display: inline-block; margin-bottom: 10px; color: var(--legal-lime); font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.legal-hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; }
.legal-hero p { max-width: 730px; margin: 16px 0 0; color: rgba(255,255,255,.82); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.legal-meta span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .78rem; }

.legal-card { margin-top: 18px; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--legal-border); border-radius: 20px; background: var(--legal-card); box-shadow: var(--legal-shadow); }
.legal-card h2 { margin: 0 0 13px; color: var(--legal-green); font-size: clamp(1.18rem, 3vw, 1.48rem); line-height: 1.25; }
.legal-card h3 { margin: 24px 0 8px; color: var(--legal-green); font-size: 1.03rem; }
.legal-card p { margin: 10px 0; }
.legal-card ul, .legal-card ol { margin: 12px 0; padding-left: 1.35rem; }
.legal-card li + li { margin-top: 7px; }
.legal-card a { color: #0b6549; font-weight: 750; }
.legal-card strong { color: #173f33; }

.legal-notice { margin: 18px 0; padding: 16px 18px; border-left: 4px solid var(--legal-gold); border-radius: 12px; background: #fff8e4; color: #5e4714; }
.legal-notice--privacy { border-left-color: var(--legal-green-2); background: #eef8f2; color: #184b3a; }
.legal-warning { border-color: #efc9c0; background: #fff8f6; }
.legal-warning h2 { color: var(--legal-danger); }

.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.legal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border: 1px solid var(--legal-green); border-radius: 12px; color: #fff !important; background: var(--legal-green); font-weight: 850; text-align: center; text-decoration: none; }
.legal-button:disabled { cursor: not-allowed; opacity: .55; }
.legal-button--secondary { color: var(--legal-green) !important; background: #fff; }
.legal-button:focus-visible, .legal-header__link:focus-visible, .legal-brand:focus-visible { outline: 3px solid var(--legal-lime); outline-offset: 3px; }

.legal-steps { list-style: none; counter-reset: legal-step; padding: 0 !important; }
.legal-steps li { position: relative; min-height: 46px; padding: 4px 0 4px 58px; }
.legal-steps li::before { counter-increment: legal-step; content: counter(legal-step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--legal-green); font-weight: 900; }

.legal-form { display: grid; gap: 10px; margin-top: 22px; padding: 20px; border: 1px solid var(--legal-border); border-radius: 15px; background: #f8fbf9; }
.legal-form input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #aebfb7; border-radius: 10px; background: #fff; color: var(--legal-text); font: inherit; }
.legal-form input:focus-visible { outline: 3px solid rgba(18,97,72,.22); border-color: var(--legal-green-2); }
.legal-form__hint { margin: 0 0 6px !important; color: var(--legal-muted); font-size: .88rem; }
.legal-form .legal-button { justify-self: start; cursor: pointer; font: inherit; }

.legal-footer { padding: 26px 16px 34px; color: var(--legal-muted); text-align: center; font-size: .84rem; }
.legal-footer a { color: var(--legal-green); font-weight: 750; }

@media (max-width: 680px) {
    .legal-header__inner { min-height: 88px; }
    .legal-brand span { display: none; }
    .legal-header__link { padding: 9px 11px; font-size: .82rem; }
    .legal-shell { width: min(100% - 20px, 920px); padding-top: 18px; }
    .legal-hero, .legal-card { border-radius: 17px; }
}

@media print {
    .legal-header__link, .legal-actions { display: none !important; }
    body.legal-page { background: #fff; }
    .legal-header { background: #fff; color: #111; }
    .legal-brand img { filter: none; }
    .legal-brand span { color: #444; border-color: #aaa; }
    .legal-hero { color: #111; background: #fff; border: 1px solid #bbb; box-shadow: none; }
    .legal-hero p { color: #333; }
    .legal-meta span { color: #222; border-color: #bbb; background: #fff; }
    .legal-card { break-inside: avoid; box-shadow: none; }
}
