/* =============================================================================
   Tussenuur.info — Public legal pages (privacy, voorwaarden, subprocessoren,
   beveiliging, changelog). Self-contained: relies only on the theme variables
   from theme.css, no Tailwind build step required.
   ============================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  background-image: var(--page-gradient);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent-primary-hover);
  text-decoration: underline;
}

/* ---------- Header ---------- */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--page-bg);
  background: color-mix(in srgb, var(--page-bg) 82%, transparent);
  border-bottom: 1px solid var(--surface-border);
}

.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.legal-brand:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.legal-brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--surface-border);
}

.legal-brand span.accent {
  color: var(--accent-primary);
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: var(--text-sm);
}

.legal-nav a {
  color: var(--text-secondary);
}

.legal-nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.legal-nav .legal-nav-cta {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.legal-nav .legal-nav-cta:hover {
  color: #fff;
  filter: brightness(1.06);
}

@media (max-width: 640px) {
  .legal-nav a:not(.legal-nav-cta) {
    display: none;
  }
}

/* ---------- Layout ---------- */
.legal-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.legal-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px 20px;
  }
}

.legal-proza h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.legal-datum {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  margin: 0 0 28px;
}

.legal-proza h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: 34px 0 10px;
  letter-spacing: -0.01em;
}

.legal-proza h2:first-of-type {
  margin-top: 0;
}

.legal-proza p {
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.legal-proza ul,
.legal-proza ol {
  color: var(--text-secondary);
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-proza li {
  margin-bottom: 8px;
}

.legal-proza strong {
  color: var(--text-primary);
}

.legal-proza code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-raised);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
}

.legal-proza hr {
  border: 0;
  border-top: 1px solid var(--surface-border);
  margin: 28px 0;
}

/* ---------- Table ---------- */
.legal-tabel {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: var(--text-sm);
}

.legal-tabel th,
.legal-tabel td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-secondary);
}

.legal-tabel th {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.legal-tabel tr:last-child td {
  border-bottom: 0;
}

.legal-tabel a {
  word-break: break-word;
}

.legal-tabel-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Footer ---------- */
.legal-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 48px;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  text-align: center;
}

.legal-footer a {
  color: var(--text-tertiary);
}

.legal-footer a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

.legal-footer .sep {
  opacity: 0.5;
  margin: 0 6px;
}

/* ---------- Changelog ---------- */
.legal-release {
  border-left: 2px solid var(--surface-border);
  padding: 0 0 4px 20px;
  margin: 0 0 26px;
  position: relative;
}

.legal-release::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.legal-release h2 {
  margin: 0 0 2px;
  font-size: var(--text-lg);
}

.legal-release .legal-datum {
  margin: 0 0 12px;
}

.legal-release ul {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}
