/* Yulduzcha static pages (privacy, terms, support, delete-account, content rules, rights, creators).
   Palette and type follow web/landing/style.css (DESIGN.md). Calm: no animation, no loud colour. */
:root {
  --sky: #4FC3F7;
  --sky-primary: #0277BD;
  --sun: #FFD54F;
  --night: #1F3A5F;
  --mist: #F4F7FB;
  --cloud: #FFFFFF;
  --ink: #37474F;
  --ink-soft: #5B6B7B;
  --line: #E3E9F1;
  --coral-ink: #B3401C;
  --grass-ink: #2E7D32;
  --radius: 16px;
  --font: Nunito, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* form { display: grid } below would otherwise show hidden steps */

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font);
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--sky-primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.site-header { background: var(--sky); color: var(--night); }
.site-header .row, main, .site-footer .row { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.site-header .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 64px; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--night); text-decoration: none; margin-right: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-nav a { color: var(--night); font-weight: 700; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  font: inherit; font-size: 0.9375rem; font-weight: 700; color: var(--night);
  background: transparent; border: 2px solid var(--night); border-radius: 999px;
  min-height: 44px; padding: 0 14px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--night); color: var(--cloud); }

main { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: 1.75rem; line-height: 1.25; color: var(--night); margin: 0.4em 0 0.6em; }
h2 { font-size: 1.25rem; color: var(--night); margin-top: 1.8em; }
.card { background: var(--cloud); border-radius: var(--radius); padding: 8px 20px 20px; box-shadow: 0 12px 28px -18px rgba(31, 58, 95, 0.35); }
.lead { font-size: 1.125rem; }
.muted { color: var(--ink-soft); font-size: 0.9375rem; }
.draft { background: #FFF4CC; border-radius: 12px; padding: 10px 14px; font-size: 0.9375rem; }

/* Both languages are in the page; site.js hides the other one. Without JS both show, one after the other. */
html[data-lang="uz"] [data-l="ru"], html[data-lang="ru"] [data-l="uz"] { display: none !important; }
html:not([data-lang]) section[data-l] + section[data-l] { margin-top: 40px; }
html:not([data-lang]) span[data-l="ru"]::before { content: " / "; }

details { background: var(--cloud); border-radius: 12px; margin: 10px 0; padding: 4px 16px; }
summary { cursor: pointer; font-weight: 700; color: var(--night); min-height: 44px; display: flex; align-items: center; }
details[open] summary { margin-bottom: 4px; }

form { display: grid; gap: 14px; }
label { font-weight: 700; color: var(--night); display: grid; gap: 6px; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink); }
label.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
input[type="tel"], input[type="text"], input[type="email"], input[type="url"], select, textarea {
  font: inherit; color: var(--ink); background: var(--cloud);
  border: 2px solid var(--line); border-radius: 12px; min-height: 48px; padding: 8px 12px; width: 100%;
}
textarea { min-height: 120px; }
.phone { display: flex; align-items: center; gap: 8px; }
.phone span { font-weight: 700; }
button.primary {
  font: inherit; font-weight: 800; color: var(--cloud); background: var(--sky-primary);
  border: 0; border-radius: var(--radius); min-height: 52px; padding: 0 24px; cursor: pointer; justify-self: start;
}
button.danger { background: var(--coral-ink); }
button.primary[disabled] { opacity: 0.5; cursor: default; }
.msg { min-height: 1.6em; font-weight: 700; }
.msg.err { color: var(--coral-ink); }
.msg.ok { color: var(--grass-ink); }

.site-footer { border-top: 1px solid var(--line); background: var(--cloud); }
.site-footer .row { padding-top: 16px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9375rem; }
.site-footer a { color: var(--ink-soft); }
