:root {
  color-scheme: dark;
  --teal: #02888b;
  --teal-deep: #045a5c;
  --amber: #ffa726;
  --cloud: #f9fafb;
  --muted: rgba(249, 250, 251, 0.72);
  --dim: rgba(249, 250, 251, 0.56);
  --charcoal: #1c1f22;
  --surface: rgba(68, 75, 84, 0.3);
  --line: rgba(68, 75, 84, 0.9);
  --soft-line: rgba(249, 250, 251, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--charcoal);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(249, 250, 251, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 250, 251, 0.03) 1px, transparent 1px),
    var(--charcoal);
  background-size: 44px 44px;
  color: var(--cloud);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: #53d0d2;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--cloud);
}

.page {
  width: min(100% - 2rem, 880px);
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 5rem);
}

.hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-block: 1rem clamp(1.5rem, 4vw, 3rem);
}

.brand {
  width: max-content;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cloud);
  font-weight: 800;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(2, 136, 139, 0.7);
  border-radius: 8px;
  background: rgba(2, 136, 139, 0.16);
  font-size: 0.84rem;
  letter-spacing: 0;
}

.eyebrow,
.updated {
  margin: 0;
  color: #52c8ca;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.45rem, 3.8vw, 2.1rem);
  line-height: 1.12;
}

p {
  margin: 0;
  color: var(--muted);
}

.summary {
  max-width: 66ch;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.policy-card {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(1rem, 3vw, 1.35rem);
}

.policy-card:first-of-type {
  border-color: rgba(2, 136, 139, 0.5);
  background:
    linear-gradient(135deg, rgba(2, 136, 139, 0.16), rgba(68, 75, 84, 0.3)),
    var(--surface);
}

.check-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(2, 136, 139, 0.14);
}

.support-card,
.contact-card {
  border-color: rgba(255, 167, 38, 0.42);
}

.support-card {
  background:
    linear-gradient(135deg, rgba(255, 167, 38, 0.14), rgba(68, 75, 84, 0.3)),
    var(--surface);
}

:focus-visible {
  outline: 2px solid rgba(2, 136, 139, 0.95);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 1.25rem, 880px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 13vw, 3.5rem);
  }
}

/* ---- Additions for the longer FeldmannCyber Assistant notice ---- */

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.section-index {
  counter-reset: section;
}

.policy-card > h2 {
  scroll-margin-top: 1.5rem;
}

/* Table of contents */
.toc {
  border-color: rgba(2, 136, 139, 0.32);
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.3rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  position: relative;
  padding-left: 2.1rem;
}

.toc-list li::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  color: var(--dim);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
  line-height: 1.65;
}

/* Labelled data categories (section 4) */
.data-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.data-list > div {
  border-left: 2px solid rgba(2, 136, 139, 0.45);
  padding-left: 0.85rem;
}

.data-list dt {
  color: var(--cloud);
  font-weight: 700;
}

.data-list dd {
  margin: 0;
  color: var(--muted);
}

/* Legal-basis table (section 6) */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.93rem;
}

caption {
  padding: 0 0 0.6rem;
  color: var(--dim);
  font-size: 0.84rem;
  text-align: left;
}

th,
td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
}

thead th {
  position: sticky;
  top: 0;
  background: #262b30;
  color: var(--cloud);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody th {
  color: var(--cloud);
  font-weight: 650;
}

tbody td {
  color: var(--muted);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover th,
tbody tr:hover td {
  background: rgba(2, 136, 139, 0.07);
}

.scroll-hint {
  color: var(--dim);
  font-size: 0.8rem;
}

@media (min-width: 46rem) {
  .scroll-hint {
    display: none;
  }
}

/* Contact block */
.address {
  color: var(--muted);
  font-style: normal;
}

.footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--soft-line);
  color: var(--dim);
  font-size: 0.85rem;
}

.footer p {
  color: var(--dim);
}
