/* ABOUTME: Provides the shared, dependency-free presentation for Topolis legal and privacy pages. */
/* ABOUTME: Keeps long bilingual notices readable, responsive, printable, and accessible without scripts. */

:root {
  color-scheme: dark;
  --ink: #0b0d10;
  --panel: rgba(14, 17, 21, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --text: #f4f1e9;
  --muted: #c7c1b5;
  --faint: #958f84;
  --accent: #f39e00;
  --accent-soft: #ffd073;
  --line: rgba(243, 158, 0, 0.28);
  --max-width: 62rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--ink) url("bg.png") center / cover fixed no-repeat;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 9, 0.72), rgba(5, 7, 9, 0.96));
  content: "";
}

a {
  color: var(--accent-soft);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff0c9;
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  transform: translateY(-180%);
  border-radius: 0.25rem;
  background: var(--text);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  background: rgba(8, 10, 12, 0.92);
  border-color: var(--line);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__inner {
  min-height: 4.25rem;
}

.site-footer__inner {
  padding: 1.4rem 0;
  flex-wrap: wrap;
}

.brand {
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav,
.footer-nav,
.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.site-nav a,
.footer-nav a,
.language-nav a {
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-main {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: clamp(1.25rem, 4vw, 3rem) auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.48);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 7vw, 3.7rem);
}

h2 {
  margin: 2.5rem 0 0.8rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

h3 {
  margin: 1.8rem 0 0.55rem;
  font-size: 1.15rem;
}

p,
ul,
ol,
dl,
address {
  max-width: 75ch;
}

p,
ul,
ol {
  margin: 0.55rem 0 1rem;
}

li + li {
  margin-top: 0.35rem;
}

address {
  font-style: normal;
}

.lede {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.notice,
.service-card {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--panel-soft);
}

.notice p:last-child,
.service-card p:last-child {
  margin-bottom: 0;
}

.language-nav {
  margin: 1.25rem 0 0;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.language-section + .language-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--line);
}

.meta-list {
  display: grid;
  max-width: 48rem;
  margin: 1rem 0;
  grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);
  gap: 0.4rem 1rem;
}

.meta-list dt {
  color: var(--muted);
  font-weight: 700;
}

.meta-list dd {
  margin: 0;
}

.updated {
  margin-top: 2.5rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
  color: var(--faint);
  font-size: 0.85rem;
}

@media (max-width: 42rem) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-header__inner {
    padding: 0.8rem 0;
  }

  .legal-main {
    width: min(calc(100% - 1rem), var(--max-width));
    padding: 1.1rem;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }

  .meta-list dd + dt {
    margin-top: 0.45rem;
  }
}

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

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .skip-link,
  .site-header,
  .site-footer,
  .language-nav {
    display: none;
  }

  .legal-main {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  h1,
  h2,
  h3,
  a {
    color: #111;
  }

  .notice,
  .service-card {
    border-color: #333;
    background: #f4f4f4;
  }
}
