:root {
    --ink: #111a2e;
    --muted: #667085;
    --green: #08b44f;
    --green-dark: #067a3a;
    --green-pale: #effbf4;
    --surface: #ffffff;
    --canvas: #f4f7fa;
    --line: #e3e9ef;
    --shadow: 0 18px 50px rgba(17, 26, 46, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 3%, rgba(8, 180, 79, 0.08), transparent 28%),
        var(--canvas);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(227, 233, 239, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.site-header-inner,
.site-footer-inner,
.legal-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-brand {
    color: var(--ink);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1.5px;
    text-decoration: none;
}

.site-brand span,
.eyebrow,
.content-card h2,
.legal-footer-title {
    color: var(--green-dark);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-nav a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--green);
}

.app-link,
.primary-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(8, 180, 79, 0.18);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
}

.legal-main {
    padding: 70px 0 86px;
}

.legal-hero {
    max-width: 820px;
    margin-bottom: 34px;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -2.5px;
}

.legal-hero > p:last-child {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.content-card,
.article-card,
.contact-card,
.notice-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.content-card,
.article-card,
.contact-card {
    padding: clamp(24px, 4vw, 38px);
}

.content-card.is-wide,
.article-card,
.contact-card {
    grid-column: 1 / -1;
}

.content-card h2,
.article-card h2,
.contact-card h2 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.25;
}

.content-card h3,
.article-card h3 {
    margin: 26px 0 8px;
    font-size: 18px;
}

.content-card p,
.article-card p,
.contact-card p {
    margin: 0 0 14px;
    color: #445067;
}

.content-card p:last-child,
.article-card p:last-child,
.contact-card p:last-child {
    margin-bottom: 0;
}

.content-card ul,
.content-card ol,
.article-card ul {
    margin: 12px 0 0;
    padding-left: 22px;
    color: #445067;
}

.content-card li + li,
.article-card li + li {
    margin-top: 8px;
}

.notice-card {
    margin-bottom: 20px;
    padding: 20px 24px;
    border-color: #cdeedb;
    background: var(--green-pale);
    color: #175a37;
}

.notice-card strong {
    color: var(--green-dark);
}

.glossary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.glossary div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfcfd;
}

.glossary strong,
.glossary span {
    display: block;
}

.glossary span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 750;
}

.contact-form .full-row {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    outline: 0;
}

.contact-form input,
.contact-form select {
    height: 48px;
    padding: 0 14px;
}

.contact-form textarea {
    min-height: 150px;
    padding: 13px 14px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(8, 180, 79, 0.1);
}

.form-status {
    min-height: 24px;
    margin: 0;
    color: var(--green-dark) !important;
    font-size: 14px;
    font-weight: 700;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) 2fr;
    gap: 40px;
    padding: 46px 0;
}

.site-footer p {
    max-width: 420px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}

.footer-links a {
    color: #344054;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.cookie-banner {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: none;
    width: min(720px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #dce4ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(17, 26, 46, 0.2);
}

.cookie-banner.is-visible {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.cookie-banner p {
    margin: 0;
    color: #475467;
    font-size: 14px;
}

.cookie-actions {
    display: flex;
    gap: 9px;
}

.cookie-actions button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.cookie-actions button:last-child {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

@media (max-width: 760px) {
    .site-header-inner,
    .site-footer-inner,
    .legal-main {
        width: min(100% - 28px, 1120px);
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        right: 14px;
        left: 14px;
        display: none;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

    .legal-main {
        padding-top: 44px;
    }

    .legal-grid,
    .site-footer-inner,
    .glossary,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .content-card,
    .content-card.is-wide,
    .article-card,
    .contact-card,
    .contact-form .full-row {
        grid-column: auto;
    }

    .cookie-banner.is-visible {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
