html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
:root {
  --legal-navy: #002f50;
  --legal-deep: #002844;
  --legal-ink: #0b3153;
  --legal-cream: #f7f3ec;
  --legal-gold: #d79b28;
  --legal-gold-light: #d79b28;
  --legal-line: rgba(215, 155, 40, .28);
}

body.legal-page {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--legal-ink);
  background: var(--legal-cream);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

.legal-page *, .legal-page *::before, .legal-page *::after { box-sizing: border-box; }
.legal-page img { display: block; max-width: 100%; }
.legal-page a { color: inherit; text-decoration: none; }
.legal-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

.legal-hero {
  position: relative;
  height: clamp(285px, 32vw, 470px);
  background: url("assets/hamburg-hero.webp") center 47% / cover no-repeat;
}

.legal-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,35,60,.16), transparent 54%);
  content: "";
}

.legal-hero__brand {
  position: absolute;
  z-index: 1;
  top: clamp(20px, 3vw, 46px);
  left: max(28px, calc(50vw - 460px));
  display: grid;
  justify-items: center;
  width: clamp(180px, 20vw, 270px);
  color: #fff7e5;
  filter: drop-shadow(0 2px 7px rgba(0,31,54,.18));
}


.legal-hero__brand img { width: clamp(120px, 13vw, 185px); height: auto; }
.legal-hero__brand img,
.legal-footer__brand img { filter: brightness(1.07) saturate(1.08) contrast(1.02); }
.legal-hero__brand span,
.legal-footer__brand span {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  color: var(--legal-gold-light);
  font-size: clamp(.82rem, 1.25vw, 1.05rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.legal-hero__brand span i,
.legal-footer__brand span i { height: 1px; background: currentColor; }
.legal-hero__brand strong,
.legal-footer__brand strong { font-weight: 400; }
.legal-page .legal-hero__brand span {
  color: var(--legal-gold);
  text-shadow: 0 1px 3px rgba(0, 37, 63, .58);
}

.legal-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 28px;
  height: 53px;
  padding: 0 max(38px, calc((100vw - 900px) / 2));
  color: white;
  background: var(--legal-deep);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-nav > span { width: 1px; height: 21px; background: var(--legal-gold-light); }
.legal-nav a { position: relative; padding: 17px 0 13px; white-space: nowrap; }
.legal-nav a[aria-current="page"]::after { position: absolute; right: 0; bottom: 8px; left: 0; height: 2px; background: var(--legal-gold-light); content: ""; }

.legal-main { position: relative; overflow: hidden; padding: 14px 28px 10px; background: var(--legal-cream); isolation: isolate; }
.legal-title { position: relative; z-index: 1; text-align: center; }
.legal-title h1 { margin: 0; font-size: clamp(2.25rem, 4.5vw, 3.7rem); line-height: 1.1; font-weight: 400; letter-spacing: .025em; text-transform: uppercase; }
.legal-title > span { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 8px auto 9px; }
.legal-title > span i { width: 52px; height: 2px; background: var(--legal-gold); }
.legal-title > span b { width: 9px; height: 9px; border: 2px solid var(--legal-gold); transform: rotate(45deg); }
.legal-title--privacy p { max-width: 690px; margin: 6px auto 13px; font-size: 1rem; line-height: 1.32; }

.legal-watermark { position: absolute; z-index: -1; top: 38px; right: max(4px, calc((100vw - 1020px) / 2)); width: min(24vw, 250px); height: auto; fill: none; stroke: var(--legal-gold); stroke-width: 2; opacity: .095; }

.legal-sheet { position: relative; z-index: 1; width: min(920px, 100%); margin: 0 auto; }
.imprint-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.imprint-column + .imprint-column { border-left: 1px solid var(--legal-line); }
.imprint-column + .imprint-column .legal-entry { padding-left: 18px; }
.imprint-wide { border-top: 1px solid var(--legal-line); }

.legal-entry { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 11px 0 12px; border-bottom: 1px solid var(--legal-line); }
.legal-entry > svg,
.legal-footer__location > svg { width: 52px; height: 52px; margin: 1px auto 0; fill: none; stroke: var(--legal-gold); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.legal-entry h2 { margin: 0 0 4px; font-size: 1.02rem; line-height: 1.18; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; overflow-wrap: anywhere; }
.legal-entry p, .legal-entry address, .legal-entry li { margin: 0; font-size: .91rem; line-height: 1.3; font-style: normal; overflow-wrap: anywhere; }
.legal-entry a { text-decoration: underline; text-decoration-color: rgba(215,155,40,.55); text-underline-offset: 2px; }
.imprint-wide .legal-entry { grid-template-columns: 70px minmax(0, 1fr); padding-top: 13px; padding-bottom: 13px; }
.imprint-wide .legal-entry:last-child { border-bottom: 0; }

.legal-sheet--privacy { width: min(900px, 100%); }
.legal-sheet--privacy .legal-entry { grid-template-columns: 72px minmax(0, 1fr); padding: 8px 0 9px; }
.legal-sheet--privacy .legal-entry > svg { width: 48px; height: 48px; }
.legal-sheet--privacy .legal-entry h2 { margin-bottom: 2px; font-size: 1rem; }
.legal-sheet--privacy .legal-entry p,
.legal-sheet--privacy .legal-entry address,
.legal-sheet--privacy .legal-entry li { font-size: .82rem; line-height: 1.28; }
.legal-entry--responsible { padding-top: 2px !important; }
.privacy-responsible { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: end; }
.privacy-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; margin: 3px 0 5px; padding-left: 18px; }

.legal-footer { padding: 18px 36px 12px; color: white; background: radial-gradient(ellipse 32% 100% at 50% 34%, rgba(38,103,145,.26), transparent 75%), var(--legal-deep); }
.legal-footer__main { display: grid; grid-template-columns: 1fr 1.05fr 1fr; align-items: center; gap: 35px; width: min(940px, 100%); min-height: 142px; margin: 0 auto; }
.legal-footer__location { text-align: center; }
.legal-footer__location > svg { width: 42px; height: 42px; margin-bottom: 2px; stroke: #d79b28; }
.legal-footer__location h2 { margin: 0 0 4px; color: #d79b28; font-size: .85rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.legal-footer__location address { font-size: .84rem; line-height: 1.28; font-style: normal; }
.legal-footer__brand { display: grid; justify-items: center; width: min(100%, 250px); margin: 0 auto; }
.legal-footer__brand img { width: 82px; height: auto; }
.legal-footer__brand span { margin-top: -2px; color: #d79b28; font-size: .86rem; }
.legal-footer__bottom { display: flex; justify-content: space-between; align-items: center; width: min(940px, 100%); margin: 0 auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.28); font-size: .77rem; text-transform: uppercase; }
.legal-footer__bottom p { margin: 0; text-transform: none; }
.legal-footer__bottom nav { display: flex; align-items: center; gap: 14px; }
.legal-footer__bottom nav span { width: 1px; height: 19px; background: #d79b28; }
.legal-footer a:hover, .legal-nav a:hover { color: var(--legal-gold-light); }
.legal-page a:focus-visible { outline: 2px solid var(--legal-gold-light); outline-offset: 4px; }

@media (min-width: 1150px) {
  .legal-page--imprint .legal-entry { padding-top: 15px; padding-bottom: 15px; }
  .legal-page--privacy .legal-entry { padding-top: 10px; padding-bottom: 11px; }
}

@media (max-width: 720px) {
  .legal-hero { height: 360px; background-position: 63% center; }
  .legal-hero__brand { top: 28px; left: 50%; width: min(65vw, 250px); transform: translateX(-50%); }
  .legal-hero__brand img { width: 140px; }
  .legal-nav { justify-content: center; gap: 12px; height: auto; min-height: 52px; padding: 0 13px; font-size: .71rem; }
  .legal-nav > span { height: 16px; }
  .legal-main { padding: 18px 18px 8px; }
  .legal-title h1 { font-size: 2.15rem; }
  .legal-title--privacy p { font-size: .94rem; }
  .legal-watermark { top: 110px; right: -50px; width: 230px; }
  .imprint-columns { grid-template-columns: 1fr; gap: 0; }
  .imprint-column + .imprint-column { border-left: 0; }
  .imprint-column + .imprint-column .legal-entry { padding-left: 0; }
  .legal-entry, .legal-sheet--privacy .legal-entry { grid-template-columns: 52px minmax(0,1fr); gap: 10px; padding: 16px 0; }
  .legal-entry > svg, .legal-sheet--privacy .legal-entry > svg { width: 40px; height: 40px; }
  .legal-entry h2, .legal-sheet--privacy .legal-entry h2 { font-size: .95rem; }
  .legal-entry p, .legal-entry address, .legal-entry li,
  .legal-sheet--privacy .legal-entry p, .legal-sheet--privacy .legal-entry address, .legal-sheet--privacy .legal-entry li { font-size: .88rem; line-height: 1.4; }
  .privacy-responsible, .privacy-columns { grid-template-columns: 1fr; gap: 4px; }
  .privacy-responsible > p { margin-top: 9px; }
  .legal-footer {
    padding: 36px 22px 20px;
    background: var(--legal-deep);
  }
  .legal-footer__brand img {
    filter: brightness(1.07) saturate(1.08) contrast(1.02) drop-shadow(0 0 18px rgba(53, 132, 181, .58)) drop-shadow(0 0 34px rgba(38, 105, 148, .28));
  }
  .legal-footer__main { grid-template-columns: 1fr; gap: 34px; }
  .legal-footer__brand {
    position: relative;
    isolation: isolate;
    grid-row: 1;
  }
  .legal-footer__brand::before {
    position: absolute;
    z-index: -1;
    top: -38px;
    left: 50%;
    width: 200px;
    height: 170px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(48, 126, 176, .43) 0%, rgba(31, 91, 132, .2) 45%, transparent 73%);
    content: '';
    pointer-events: none;
  }
  .legal-footer__location:first-child { grid-row: 2; }
  .legal-footer__location:last-child { grid-row: 3; }
  .legal-footer__bottom { flex-direction: column; gap: 12px; margin-top: 32px; }
}

@media (max-width: 430px) {
  .legal-nav { gap: 8px; padding-inline: 8px; font-size: .68rem; letter-spacing: .045em; }
  .legal-main { padding-inline: 14px; }
  .legal-entry, .legal-sheet--privacy .legal-entry {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
