/* Shared look for the legal pages (legal notice, terms, privacy, cookies).
   Same palette and fonts as the app. */
:root {
  --void: #050b14;
  --deep: #08111d;
  --panel: #0c1826;
  --panel-hi: #112336;
  --line: rgba(126, 168, 199, 0.14);
  --line-hi: rgba(126, 168, 199, 0.28);
  --jade: #37e0a0;
  --amber: #f7b32b;
  --ice: #8ca6be;
  --muted: rgba(140, 166, 190, 0.75);
  --text: #dceaf3;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 22% -8%, rgba(55, 224, 160, 0.07), transparent 62%),
    var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding: 0 20px 72px;
}
.shell { max-width: 780px; margin: 0 auto; }
a { color: var(--jade); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(55, 224, 160, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(55, 224, 160, 0.14), rgba(55, 224, 160, 0.03) 70%);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.brand-name b { color: var(--jade); }
.lang {
  display: flex;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
}
.lang button {
  min-width: 34px;
  padding: 0 10px;
  background: none;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
}
.lang button.is-active { background: rgba(55, 224, 160, 0.16); color: var(--jade); }

/* The four documents, always reachable from each other */
.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 30px;
}
.doc-nav a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ice);
  font-size: 13px;
}
.doc-nav a:hover { color: var(--jade); border-color: rgba(55, 224, 160, 0.45); text-decoration: none; }
.doc-nav a[aria-current="page"] { color: var(--jade); border-color: rgba(55, 224, 160, 0.55); background: rgba(55, 224, 160, 0.08); }

h1 { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.05; }
.updated { margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.intro { margin-top: 18px; color: var(--ice); }

.summary {
  margin: 26px 0 8px;
  padding: 20px 22px;
  background: linear-gradient(180deg, var(--panel-hi) 0%, var(--panel) 60%);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.summary h2 { margin: 0 0 12px; padding: 0; border: 0; }
.summary ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.summary li { position: relative; padding-left: 26px; }
.summary li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(55, 224, 160, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337e0a0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") no-repeat center / 11px;
}
.summary table { margin: 0; }
.summary td:first-child { width: 150px; }

.toc { margin: 22px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 24, 38, 0.6); }
.toc strong { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin-left: 20px; columns: 2; column-gap: 28px; font-size: 14px; }
.toc li { break-inside: avoid; }

h2 {
  margin: 38px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
  scroll-margin-top: 16px;
}
h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 600; color: var(--text); }
p { margin-bottom: 12px; }
ul.list, ol.list { margin: 0 0 12px 20px; }
ul.list li, ol.list li { margin-bottom: 6px; }
.note {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(247, 179, 43, 0.3);
  border-radius: 10px;
  background: rgba(247, 179, 43, 0.07);
  color: #f3d9a4;
  font-size: 14.5px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; margin: 8px 0 14px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
td:first-child { font-weight: 600; }
code { font-family: var(--mono); font-size: 13px; color: var(--ice); }

.consent-box { margin: 10px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.consent-state { margin-bottom: 10px; font-size: 14px; color: var(--ice); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions button {
  flex: 1 1 160px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  background: rgba(126, 168, 199, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.consent-actions button.is-active { border-color: var(--jade); color: var(--jade); background: rgba(55, 224, 160, 0.1); }

.contact {
  margin-top: 36px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.foot { margin-top: 34px; font-size: 13px; color: var(--muted); }
article[hidden] { display: none; }

@media (max-width: 560px) {
  h1 { font-size: 34px; }
  .toc ol { columns: 1; }
  table.stack, table.stack thead, table.stack tbody, table.stack tr, table.stack td { display: block; }
  table.stack thead { display: none; }
  table.stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stack td { padding: 2px 0; border: 0; }
  table.stack td[data-label]::before { content: attr(data-label) ": "; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .summary td:first-child { width: auto; }
}
