/* Shared style of the public pages for the DiniGo app (/privacy, /support). Plain CSS with no build
   step: these pages are static files served before the portal's single-page app. Colours copy the
   app's theme (mobile src/themes/dinigo.css): DiniGo red #d7191f light, #d42a31 dark. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f4f4;
  --text: #1a1414;
  --muted: #736b6b;
  --border: #f0e3e3;
  --accent: #d7191f;
  --accent-text: #b5141a;
  --on-accent: #ffffff;
  --soft: #fdecec;
  --soft-border: #f6c9cb;
  --shadow: 0 4px 14px rgba(120, 40, 40, 0.08);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e13;
    --surface: #1a1920;
    --surface-2: #24222b;
    --text: #f3f1f6;
    --muted: #a7a1b0;
    --border: #2d2b35;
    --accent: #d42a31;
    --accent-text: #ff7a7f;
    --soft: #2a1619;
    --soft-border: #5c2a30;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}
a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 30px;
  height: 30px;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
}
.tabs a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.tabs a[aria-current='page'] {
  background: var(--surface);
  color: var(--accent-text);
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  background: radial-gradient(120% 90% at 100% 0%, var(--soft) 0%, transparent 60%), var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 24px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}
h1 {
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 6px 0 12px;
}
.lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 16px;
  max-width: 60ch;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--soft-border);
  background: var(--soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
}
.lang {
  display: inline-flex;
  margin-top: 18px;
  padding: 3px 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.lang a {
  padding: 4px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.lang a + a {
  border-left: 1px solid var(--border);
}
.en-title {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

/* Highlights under the hero */
.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}
.highlights li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.45;
}
.highlights strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent);
}
.icon svg {
  width: 20px;
  height: 20px;
}

/* Content */
main {
  padding: 8px 0 24px;
}
.lang-section {
  scroll-margin-top: 70px;
}
.lang-section + .lang-section {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.lang-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.lang-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.toc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0 0 20px;
  padding: 14px;
  list-style: none;
  counter-reset: toc;
  border-radius: var(--radius);
  background: var(--surface-2);
}
@media (min-width: 560px) {
  .toc {
    grid-template-columns: 1fr 1fr;
  }
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}
.toc a::before {
  content: counter(toc);
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
}
.toc a:hover {
  background: var(--surface);
}
.card {
  margin: 14px 0;
  padding: 18px 18px 8px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  scroll-margin-top: 76px;
}
.card h2,
.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}
.num {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
}
.card p,
.card ul,
.card ol {
  margin: 0 0 12px;
}
.card ul {
  padding-left: 20px;
}
.card li {
  margin: 6px 0;
}
.card li::marker {
  color: var(--accent);
}
.note {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--soft-border);
  font-size: 15px;
}

/* Contact */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin: 16px 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
}
.contact .icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--on-accent);
}
.contact div {
  flex: 1 1 200px;
}
.contact strong {
  display: block;
  font-size: 17px;
}
.contact span {
  font-size: 14px;
  opacity: 0.9;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #b5141a;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

/* FAQ */
.faq {
  margin: 14px 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq details + details {
  border-top: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
}

/* Step lists */
.steps {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 40px;
  min-height: 28px;
  margin: 10px 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--soft-border);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
}
.path {
  display: inline;
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 8px;
}
footer a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
footer p {
  margin: 0;
}
.contact + .en-title,
.faq + .en-title {
  margin-top: 28px;
}
