:root {
    color-scheme: light;
    --background: #f7f8fb;
    --surface: #ffffff;
    --text: #182033;
    --text-secondary: #566074;
    --border: #dfe3eb;
    --primary: #3157d5;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

button, a { font: inherit; }

.privacy-page {
    width: min(100% - 28px, 760px);
    margin: 0 auto;
    padding: 32px 0;
}

.privacy-card {
    position: relative;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
}

.privacy-card header { margin: 28px 0 34px; }
.privacy-card h1 { margin: 0 0 12px; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.08; }
.privacy-card h2 { margin: 0 0 8px; font-size: 1.08rem; }
.privacy-card p, .privacy-card ul { margin: 0; color: var(--text-secondary); }
.privacy-card section + section { margin-top: 28px; }
.privacy-card ul { padding-left: 21px; }
.privacy-card li + li { margin-top: 8px; }

.privacy-back {
    color: var(--primary);
    font-weight: 650;
    text-decoration: none;
}
.privacy-back:hover { text-decoration: underline; }

.privacy-language-switch {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin: 0 12px 10px 0;
}

.privacy-language-switch button {
    min-width: 42px;
    min-height: 40px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
}

.privacy-language-switch button:hover { background: #eef1f6; }
.privacy-language-switch button.is-active { background: var(--primary); color: #fff; }
.privacy-language-switch button:focus-visible,
.privacy-back:focus-visible { outline: 3px solid rgba(49, 87, 213, .25); outline-offset: 3px; }

@media (max-width: 520px) {
    .privacy-page { width: min(100% - 20px, 760px); padding: 14px 0 22px; }
    .privacy-card { padding: 24px 20px 30px; border-radius: 20px; }
    .privacy-card header { margin-top: 24px; }
    .privacy-language-switch { margin-right: 4px; }
}
