:root {
    --bg: #f8f4ff;
    --surface: rgba(255, 255, 255, 0.96);
    --text: #241d37;
    --muted: #665f78;
    --accent: #5b49d6;
    --accent-soft: #efeaff;
    --border: rgba(91, 73, 214, 0.16);
    --shadow: 0 20px 50px rgba(72, 44, 150, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, #eee5ff 0, transparent 26%),
        radial-gradient(circle at top right, #ffe8d7 0, transparent 22%),
        var(--bg);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

a { color: var(--accent); }

.wrap {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
}

.language-switch a {
    min-width: 44px;
    padding: 7px 10px;
    border-radius: 9px;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.language-switch a[aria-current="page"] {
    color: #fff;
    background: var(--accent);
}

.brand {
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
}

.back {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    font-weight: 650;
}

.document {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 14px;
    font-weight: 700;
}

h1, h2, h3 {
    color: #000;
    line-height: 1.2;
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 6vw, 48px);
}

h2 {
    margin: 38px 0 12px;
    font-size: 25px;
}

h3 {
    margin: 24px 0 8px;
    font-size: 20px;
}

p, li { color: var(--muted); }

ul, ol { padding-left: 24px; }

.updated {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 14px;
}

.summary {
    margin: 24px 0 30px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--accent-soft);
}

.summary p { margin: 0; color: var(--text); }

.price-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.price-item {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.price-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 21px;
}

.price-item p { margin: 0; }

.details {
    display: grid;
    grid-template-columns: minmax(150px, 210px) 1fr;
    gap: 8px 20px;
    margin: 18px 0 0;
}

.details dt { font-weight: 700; }
.details dd { margin: 0; color: var(--muted); }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #5b49d6, #8d48e8);
    text-decoration: none;
    font-weight: 700;
}

.button.secondary {
    color: var(--accent);
    background: #fff;
    border: 1px solid var(--border);
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 22px;
    font-size: 14px;
}

footer {
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .wrap { width: min(100% - 20px, 900px); padding-top: 12px; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .topbar-actions { width: 100%; justify-content: space-between; }
    .document { padding: 22px 18px; border-radius: 20px; }
    .details { grid-template-columns: 1fr; gap: 2px; }
    .details dd { margin-bottom: 10px; }
    .actions .button { width: 100%; }
}
