:root {
  --brand-blue: #2f9dff;
  --brand-azure: #4de3ff;
  --ink: #0a1628;
  --ink-soft: #2c3a52;
  --ink-muted: #5b6b80;
  --line: rgba(47, 157, 255, 0.18);
  --bg: #f5f8ff;
}

@keyframes legalSweep {
  0%, 100% { background-position: 0% 50%, 100% 30%; }
  50%      { background-position: 12% 18%, 80% 60%; }
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 18% 6%, rgba(47, 157, 255, 0.15), transparent 36rem),
    radial-gradient(circle at 84% 18%, rgba(77, 227, 255, 0.13), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 40%, #eaf1fc 100%);
  background-size: 220% 220%, 220% 220%, 100% 100%;
  background-attachment: fixed;
  animation: legalSweep 32s ease-in-out infinite;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html, body { animation: none; }
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}
a:hover, a:focus-visible {
  color: #0d5bd7;
  border-bottom-color: currentColor;
  outline: none;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  padding: 9px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.legal-back:hover {
  transform: translateX(-3px);
  border-color: var(--brand-blue);
  background: #ffffff;
}

.hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(77, 227, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #ffffff, rgba(238, 247, 255, 0.85));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  box-shadow:
    0 28px 60px -28px rgba(47, 92, 168, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(47, 157, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-azure), var(--brand-blue));
  border-radius: 2px;
}

h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ink) 0%, #1d3962 60%, var(--brand-blue) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-top: 56px;
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  position: relative;
  padding-left: 16px;
}
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 0.85em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-azure), var(--brand-blue));
}

h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
}

p, li {
  font-size: 16px;
  color: var(--ink-soft);
}

ul, ol { padding-left: 22px; }
li + li { margin-top: 6px; }

.meta, .note {
  color: var(--ink-muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  background: linear-gradient(160deg, #ffffff, rgba(238, 247, 255, 0.7));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow:
    0 18px 38px -22px rgba(47, 92, 168, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1),
              box-shadow 320ms ease,
              border-color 320ms ease,
              background 320ms ease;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(77, 227, 255, 0.18), transparent 70%);
  opacity: 0.5;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow:
    0 30px 56px -22px rgba(47, 157, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.card:hover::after { opacity: 1; }
.card h3 { margin-top: 0; }
.card a { font-weight: 700; }

.form {
  background: linear-gradient(160deg, #ffffff, rgba(238, 247, 255, 0.7));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  margin-top: 20px;
  box-shadow:
    0 18px 38px -22px rgba(47, 92, 168, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: #243b59;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 157, 255, 0.18);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--brand-azure), var(--brand-blue));
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px -10px rgba(47, 157, 255, 0.55);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -12px rgba(47, 157, 255, 0.7);
}

.button:disabled {
  opacity: 0.65;
  cursor: progress;
}

.form-status {
  margin-top: 14px;
  color: #16a05a;
  font-weight: 700;
}

.form-status.error {
  color: #c93232;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 40px 0;
  border: none;
}

.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 14px;
}
.footer a { color: var(--brand-blue); font-weight: 700; }

/* Smaller utility for long horizontal lists (e.g. supervisory authorities) */
.legal-fineprint {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-muted);
  opacity: 0.85;
  margin: 8px 0 0;
}
.legal-fineprint a {
  font-weight: 600;
  white-space: nowrap;
}

/* Collapsible "publisher info" — keeps controller details out of the way */
.legal-publisher {
  margin-top: 16px;
  font-size: 12px;
}
.legal-publisher > summary {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: border-color 200ms ease, background 200ms ease;
}
.legal-publisher > summary::-webkit-details-marker { display: none; }
.legal-publisher > summary::marker { content: ""; }
.legal-publisher > summary::after {
  content: "▾";
  font-size: 9px;
  color: var(--brand-blue);
  transition: transform 200ms ease;
}
.legal-publisher[open] > summary::after { transform: rotate(180deg); }
.legal-publisher > summary:hover {
  border-color: var(--brand-blue);
  background: #ffffff;
}
.legal-publisher p { margin: 10px 0 0; }

/* =====================================================
   PREMIUM PASS — clean (legal)
   ===================================================== */

@keyframes legalTitleSweep {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero h1 {
  background: linear-gradient(120deg, var(--ink) 0%, #1d3962 30%, var(--brand-blue) 60%, var(--brand-azure) 80%, #1d3962 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: legalTitleSweep 14s ease-in-out infinite;
}

/* Soft page entry */
@keyframes legalPageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.hero       { animation: legalPageIn 600ms cubic-bezier(.2, .8, .2, 1) both; }
.card-grid  { animation: legalPageIn 600ms cubic-bezier(.2, .8, .2, 1) 120ms both; }

/* Custom scrollbar */
html { scrollbar-color: var(--brand-blue) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand-azure), var(--brand-blue));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero, .card-grid { animation: none; }
}

/* =====================================================
   COLOR PASS — brand-rich, lively legal pages
   ===================================================== */

:root {
  --accent-violet: #8a6dff;
  --accent-teal:   #16c787;
  --accent-coral:  #ff8a5c;
  --accent-pink:   #ff6dad;
  --accent-amber:  #ffb547;
}

/* Multi-stop hero with extra warmth */
.hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(77, 227, 255, 0.22), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(138, 109, 255, 0.16), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(22, 199, 135, 0.12), transparent 55%),
    linear-gradient(135deg, #ffffff, rgba(238, 247, 255, 0.85));
}

/* Eyebrow with gradient text instead of flat blue */
.eyebrow {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-azure));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Hero h1 with richer multi-color gradient (overrides earlier two-stop) */
.hero h1 {
  background: linear-gradient(120deg,
    var(--ink) 0%,
    #1d3962 22%,
    var(--brand-blue) 45%,
    var(--brand-azure) 60%,
    var(--accent-violet) 78%,
    var(--ink) 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Card category color rotation — accent border + corner glow per card */
.card-grid .card:nth-child(6n+1) { --card-accent: var(--brand-blue); }
.card-grid .card:nth-child(6n+2) { --card-accent: var(--accent-teal); }
.card-grid .card:nth-child(6n+3) { --card-accent: var(--accent-violet); }
.card-grid .card:nth-child(6n+4) { --card-accent: var(--accent-coral); }
.card-grid .card:nth-child(6n+5) { --card-accent: var(--brand-azure); }
.card-grid .card:nth-child(6n)   { --card-accent: var(--accent-pink); }

.card-grid .card { --card-accent: var(--brand-blue); }
.card-grid .card::after {
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 30%, transparent), transparent 70%);
}
.card-grid .card:hover {
  border-color: var(--card-accent);
  box-shadow:
    0 30px 56px -22px color-mix(in srgb, var(--card-accent) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.card-grid .card h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 40%, white));
  margin-bottom: 10px;
}

/* H2 left-bar inherits accent — but rotate per section using h2 nth-of-type */
h2:nth-of-type(6n+1)::before { background: linear-gradient(180deg, var(--brand-azure), var(--brand-blue)); }
h2:nth-of-type(6n+2)::before { background: linear-gradient(180deg, #2dffb1, var(--accent-teal)); }
h2:nth-of-type(6n+3)::before { background: linear-gradient(180deg, #b099ff, var(--accent-violet)); }
h2:nth-of-type(6n+4)::before { background: linear-gradient(180deg, #ffb98f, var(--accent-coral)); }
h2:nth-of-type(6n+5)::before { background: linear-gradient(180deg, var(--brand-azure), var(--accent-violet)); }
h2:nth-of-type(6n)::before   { background: linear-gradient(180deg, #ffa8c8, var(--accent-pink)); }

/* Form status: success badge with green pill */
.form-status:not(:empty) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(22, 199, 135, 0.12);
  border: 1px solid rgba(22, 199, 135, 0.35);
  color: #0e8a5e;
  font-weight: 700;
  font-size: 14px;
}
.form-status code {
  background: rgba(22, 199, 135, 0.16);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #0a6b48;
}
.form-status.error {
  background: rgba(255, 138, 92, 0.14);
  border-color: rgba(201, 50, 50, 0.4);
  color: #b13a3a;
}
.form-status.error a {
  color: #b13a3a;
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

/* Button: subtle multi-color gradient sweep */
.button {
  background: linear-gradient(120deg, var(--brand-azure), var(--brand-blue) 60%, var(--accent-violet) 130%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  transition: background-position 600ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.button:hover:not(:disabled) {
  background-position: 100% 50%;
}

/* Footer regional links: each color-tinted */
.footer a:nth-of-type(1) { color: var(--brand-blue); }
.footer a:nth-of-type(2) { color: var(--accent-violet); }
.footer a:nth-of-type(3) { color: var(--accent-coral); }
.footer a:nth-of-type(4) { color: var(--accent-teal); }
.footer a:nth-of-type(5) { color: var(--accent-pink); }
.footer a:nth-of-type(6) { color: var(--accent-amber); }

/* Inline links inside body get a subtle highlight on hover */
p a, li a {
  background-image: linear-gradient(90deg, var(--brand-azure), var(--brand-blue));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  border-bottom: none;
  padding-bottom: 1px;
}
p a:hover, li a:hover {
  background-image: linear-gradient(90deg, var(--brand-azure), var(--accent-violet));
  background-size: 100% 2px;
}

/* =====================================================
   MOBILE — legal pages
   ===================================================== */

@media (max-width: 760px) {
  .page { padding: 32px 18px 64px; }
  .legal-back {
    margin-bottom: 18px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .hero {
    padding: 26px 22px;
    border-radius: 22px;
  }
  h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
  }
  h2 {
    font-size: 1.3rem;
    margin-top: 36px;
    padding-left: 14px;
  }
  h3 { font-size: 1.05rem; }
  p, li { font-size: 15px; line-height: 1.6; }
  .meta, .note { font-size: 13px; }
  ul, ol { padding-left: 20px; }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
  }
  .card { padding: 18px; border-radius: 18px; }
  .card h3::before { width: 24px; height: 2px; margin-bottom: 8px; }

  .form { padding: 20px; border-radius: 18px; }
  .field input, .field select, .field textarea {
    padding: 12px 12px;
    font-size: 16px; /* prevent iOS zoom on focus */
  }
  .field textarea { min-height: 120px; }
  .button {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
  }

  .footer {
    margin-top: 44px;
    padding-top: 18px;
    font-size: 13px;
  }
}

@media (max-width: 440px) {
  .page { padding: 24px 14px 56px; }
  .hero { padding: 22px 18px; }
  h1 { font-size: clamp(1.7rem, 9vw, 2rem); }
  .eyebrow { font-size: 11px; letter-spacing: 0.12em; }
}

/* =========================================================================
   Language switcher (legal pages) — light-theme variant of the homepage
   ========================================================================= */
.lang-switcher {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 30;
  margin: 0;
}

.lang-switcher > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(10, 22, 40, 0.06);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  user-select: none;
  -webkit-user-select: none;
}

.lang-switcher > summary::-webkit-details-marker { display: none; }
.lang-switcher > summary::marker { content: ""; }

.lang-switcher > summary:hover,
.lang-switcher[open] > summary,
.lang-switcher > summary:focus-visible {
  color: var(--ink);
  background: #fff;
  border-color: var(--brand-blue);
}

.lang-switcher > summary:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

.lang-switcher .lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-switcher .lang-code {
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(10, 22, 40, 0.14);
  display: grid;
  gap: 2px;
}

.lang-menu li { display: block; }

.lang-menu a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 0;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 140ms ease, color 140ms ease;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  color: var(--ink);
  background: rgba(47, 157, 255, 0.08);
  outline: none;
}

.lang-menu a[aria-current="true"] {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(47, 157, 255, 0.14), rgba(77, 227, 255, 0.08));
  font-weight: 600;
}

.lang-menu .lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-menu .lang-code {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  font-weight: 700;
}

@media (max-width: 600px) {
  .lang-switcher {
    top: 16px;
    right: 16px;
  }

  .lang-switcher > summary {
    padding: 7px 12px;
    font-size: 12px;
  }

  .lang-menu {
    min-width: 180px;
  }
}

