/* Shared style for the public legal pages (privacy, terms, legal notice). */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f7f7f8;
  --text: #0a0a0a;
  --muted: #4b5563;
  --accent: #c8a64b;
  --border: #e5e7eb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #131313;
    --text: #ededed;
    --muted: #9ca3af;
    --accent: #d4b15c;
    --border: #1f1f23;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "DM Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.legal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.legal__brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}
.legal__lang { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.legal__lang button {
  border: 0; background: transparent; color: var(--muted);
  padding: 4px 12px; border-radius: 999px; font-weight: 600; cursor: pointer;
  font-size: 13px;
}
.legal__lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

h1 {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
h2 {
  margin-top: 32px;
  font-size: 19px;
  letter-spacing: -0.2px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
h3 { margin-top: 22px; font-size: 16px; }
p, li { color: var(--text); }
.muted { color: var(--muted); font-size: 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 4px; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { background: var(--surface); font-weight: 700; }

.lang-section { display: none; }
.lang-section[data-active="true"] { display: block; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }

.legal__footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.legal__footer a { color: var(--muted); margin-right: 12px; }
