/* Shared styles for the privacy and support pages. Tokens match index.html. */
:root {
  --bg: #f5f2ea;
  --bg-raised: #ece8dc;
  --line: #ddd6c6;
  --text: #14212e;
  --muted: #566272;
  --accent: #0a67b0;
  --accent-ink: #ffffff;
  --accent-dim: rgba(10, 103, 176, 0.1);
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html[lang="en"] .i18n-el,
html[lang="el"] .i18n-en {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.05;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 60;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip:focus { top: 0.75rem; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Top bar ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
  background: var(--bg-raised);
}

.lang-switch button {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 44px;
  min-height: 32px;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button:hover { color: var(--text); }

.lang-switch button[aria-pressed="true"] {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ---------- Page head ---------- */

.page-head {
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

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

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.effective,
.intro {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.95rem;
  text-wrap: pretty;
}

.intro { font-size: 1.1rem; }

/* ---------- Body ---------- */

.content {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin: 3.25rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 1rem;
  text-wrap: pretty;
}

.prose p { margin: 0 0 1rem; }

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.prose li::marker { color: var(--accent); }

.prose strong { color: var(--text); font-weight: 600; }

.prose a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.prose a:hover { color: var(--accent); border-color: var(--accent); }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.foot-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
