:root {
  color-scheme: light;
  color: #0f172a;
  background: #f8fafc;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.7;
  --link: #0369a1;
  --line: #e2e8f0;
  --muted: #475569;
}

body {
  margin: 0;
  font-weight: 500;
}

.legal-shell {
  width: min(68rem, calc(100% - clamp(1.5rem, 5vw, 2.5rem)));
  margin: 0 auto;
}

a {
  color: var(--link);
  overflow-wrap: anywhere;
  text-underline-offset: .2em;
}

a:hover {
  color: #075985;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}

.legal-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: .85rem 0;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #0f172a;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.legal-brand strong {
  color: var(--link);
}

.legal-brand small {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  flex: 0 0 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: .75rem;
  background: #0f172a;
  color: #7dd3fc;
  font-size: .9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.legal-hero {
  margin: clamp(1.25rem, 4vw, 3rem) 0 1.25rem;
  padding: clamp(1.25rem, 5vw, 3.5rem);
  border-radius: 1.25rem;
  background:
    linear-gradient(90deg, #0f172a, transparent),
    radial-gradient(ellipse at top right, #164e63, transparent 70%),
    linear-gradient(#334155 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, #334155 1px, transparent 1px) 0 0 / 36px 36px,
    #0f172a;
  color: #fff;
}

.legal-intro {
  max-width: 42rem;
  margin: .85rem 0 0;
  color: #dbeafe;
  font-size: clamp(.95rem, 2vw, 1.08rem);
  font-weight: 550;
}

.legal-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .6rem;
  color: #bae6fd;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-label::before {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #38bdf8;
  content: '';
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 .7rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.imprint-grid,
.privacy-layout {
  display: grid;
  gap: 1.25rem;
}

.imprint-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.privacy-layout {
  grid-template-columns: 15rem minmax(0, 1fr);
  align-items: start;
}

.legal-card {
  min-width: 0;
  padding: clamp(1.15rem, 4vw, 2.35rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
}

.card-kicker {
  display: block;
  margin-bottom: .4rem;
  color: #0284c7;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-card address,
.privacy-copy p {
  margin: 0;
  color: var(--muted);
}

address {
  font-style: normal;
}

.contact-list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: .15rem;
}

.contact-list li + li {
  margin-top: .75rem;
}

.contact-list span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-list a {
  font-size: 1.02rem;
  font-weight: 700;
}

.privacy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.privacy-summary > div {
  padding: 1.15rem;
  border: 1px solid #bae6fd;
  border-radius: 1rem;
  background: #f0f9ff;
}

.privacy-summary strong,
.privacy-summary span {
  display: block;
}

.privacy-summary strong {
  margin-bottom: .25rem;
  color: #075985;
}

.privacy-summary span {
  color: #475569;
  font-size: .86rem;
  line-height: 1.55;
}

.contents {
  position: sticky;
  top: 1.25rem;
  padding: 1.2rem;
  font-size: .875rem;
}

.contents h2 {
  font-size: 1rem;
}

.contents ol {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--muted);
}

.contents li + li {
  margin-top: .35rem;
}

.privacy-copy section {
  scroll-margin-top: 1.25rem;
}

.privacy-copy section + section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.privacy-copy p + p {
  margin-top: .85rem;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

.legal-footer button {
  padding: .55rem .85rem;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #f0f9ff;
  color: var(--link);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.legal-footer button:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.legal-status {
  margin: 1rem 0 0;
  color: #64748b;
  font-size: .82rem;
  font-weight: 650;
  text-align: right;
}

@media (max-width: 46rem) {
  .imprint-grid,
  .privacy-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contents {
    position: static;
  }

  .privacy-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-status {
    text-align: center;
  }
}

@media (max-width: 24rem) {
  .back-link {
    padding-inline: .6rem;
  }
}
