/* Privacy policy page (DECISIONS #41). Same register as the landing page and the old inline
   styles of this page: black ground, the olive only as light, body text bright enough for a long
   read, system fonts only. A separate file because the page's Content-Security-Policy allows no
   inline styles. */

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

/* Both languages are in the page; only the chosen one is shown (privacy.js sets data-lang on
   <html> from the head, before anything is drawn). Without JavaScript, Spanish is shown. */
html[data-lang="es"] main [lang="en"],
html[data-lang="en"] main [lang="es"],
html:not([data-lang]) main [lang="en"] { display: none; }
html:not([data-lang]) .lang { display: none; }
html[data-lang] .noscript { display: none; }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(122, 140, 56, 0.14), transparent 55%),
    #000;
  color: rgba(255, 255, 255, 0.74);
  font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  padding: 3rem 1.25rem 4rem;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 720px; margin: 0 auto; }

/* Language toggle: the landing page's buttons, fixed in the corner so it can be used anywhere in
   a long page (privacy.js keeps the reader at the same section when switching). */
.lang {
  position: fixed;
  z-index: 1;
  top: 1.2rem;
  right: 1.2rem;
  display: flex;
  gap: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.lang button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.32);
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: color 0.2s;
}
.lang button:hover,
.lang button:focus-visible,
.lang button[aria-pressed="true"] { color: rgba(255, 255, 255, 0.85); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
  text-decoration: none;
  border-bottom: none;
  margin-bottom: 3.5rem;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(122, 140, 56, 0.3);
}
.brand span {
  font-size: 0.85rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

h1 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.meta {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.applies { margin-top: 1.4rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

.noscript {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Table of contents. */
.toc { margin-top: 2.6rem; font-size: 0.88rem; }
.toc ol { list-style: none; padding-left: 0; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.35rem; break-inside: avoid; }
.toc a { border-bottom: none; color: rgba(255, 255, 255, 0.62); }
.toc a:hover, .toc a:focus-visible { color: #fff; }

/* Anchored sections (#4, #8, … are linked from the app and Google Play): keep the heading
   clear of the top edge when jumped to. */
section { scroll-margin-top: 1.5rem; }

h2 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 3.2rem;
  margin-bottom: 1rem;
}
h2::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  margin-bottom: 1.4rem;
  background: rgba(255, 255, 255, 0.35);
}
section:target h2::before { background: #a9bb62; }

h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

p, li { margin-bottom: 0.8rem; }
ul, ol { padding-left: 1.3rem; }
li::marker { color: rgba(122, 140, 56, 0.9); }

strong { color: #fff; font-weight: 500; }
code { font-family: inherit; color: rgba(255, 255, 255, 0.9); }

a { color: #a9bb62; text-decoration: none; border-bottom: 1px solid rgba(169, 187, 98, 0.35); }
a:hover, a:focus-visible { border-bottom-color: #a9bb62; }

/* Long addresses and identifiers wrap instead of widening the page. */
p, li, td { overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th, td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
th {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
td { color: rgba(255, 255, 255, 0.78); }

footer {
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
}
footer a { border-bottom: none; color: rgba(255, 255, 255, 0.5); }
footer a:hover { color: #fff; }

@media (max-width: 600px) {
  body { padding: 2rem 1rem 3rem; }
  h1 { font-size: 1.8rem; }
  .brand { margin-bottom: 2.5rem; }
  .lang { top: 0.9rem; right: 0.8rem; }
  .toc ol { columns: 1; }
  th, td { padding: 0.6rem 0.5rem; }
  table { font-size: 0.82rem; }
}
