/* ukrapka.com — document pages (privacy, terms, support).
   Same quiet-paper language as styles.css, tuned for long-form reading. */

:root {
    --paper: #faf9f7;
    --surface: #ffffff;
    --wash: #f2f0ec;

    --ink: #1a1714;
    --ink-muted: #57524d;
    --ink-faint: #9a938c;

    --rule: #e6e2dc;

    --accent: #c2603f;
    --accent-hover: #a44e30;

    --radius: 10px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 44rem;
    margin: 0 auto;
    padding: 4.5rem 2rem 5rem;
}

/* Top bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rule);
}

.back {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s var(--ease);
}

.back:hover {
    color: var(--ink);
}

/* Language switchers — three markup variants across the pages, one look */
.lang-switcher,
.lang-switch,
.lang-links {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

.lang-switcher button,
.lang-switch button,
.lang-links a {
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.25rem 0.55rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--ink-faint);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-switcher button:hover,
.lang-switch button:hover,
.lang-links a:hover {
    color: var(--ink);
}

.lang-switcher button.active,
.lang-switch button.active,
.lang-links a.active {
    color: var(--ink);
    background: rgba(26, 23, 20, 0.05);
}

/* Typography */
h1 {
    font-size: clamp(1.75rem, 3.4vw, 2.125rem);
    font-weight: 550;
    line-height: 1.2;
    letter-spacing: -0.021em;
    margin-bottom: 0.4rem;
}

.date,
.subtitle {
    color: var(--ink-faint);
    font-size: 0.9375rem;
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.1875rem;
    font-weight: 550;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 2.75rem 0 0.75rem;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

p,
ul,
ol {
    margin-bottom: 1rem;
    color: var(--ink-muted);
}

ul,
ol {
    padding-left: 1.35rem;
}

li {
    margin-bottom: 0.4rem;
}

strong {
    color: var(--ink);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(194, 96, 63, 0.3);
    transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

a:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Lead paragraph */
.lead {
    font-size: 1.0625rem;
    color: var(--ink);
    background: var(--wash);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 2rem;
}

/* Language-gated blocks (toggled by inline page scripts) */
.lang-en {
    display: none;
}

/* Support: contact cards */
.contact-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-card .icon {
    width: 36px;
    height: 36px;
    background: var(--wash);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 1.0625rem;
    flex-shrink: 0;
}

.contact-card h3 {
    margin-bottom: 0.15rem;
}

.contact-card p {
    margin: 0;
}

.contact-card .note {
    color: var(--ink-faint);
    font-size: 0.8125rem;
    margin-top: 0.4rem;
}

/* Support: FAQ */
.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item p {
    margin: 0;
}

/* Support: numbered steps */
.steps {
    background: var(--wash);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
}

.steps ol {
    margin: 0;
    padding-left: 1.15rem;
}

.steps li {
    margin-bottom: 0.4rem;
    color: var(--ink-muted);
}

.steps li:last-child {
    margin-bottom: 0;
}

/* Footer links row */
.links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--rule);
    font-size: 0.9375rem;
}

footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    color: var(--ink-faint);
    font-size: 0.875rem;
}

@media (max-width: 560px) {
    .container {
        padding: 3rem 1.25rem 4rem;
    }

    .contact-card {
        flex-direction: column;
        gap: 0.875rem;
        padding: 1.25rem;
    }

    .links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
    }
}
