/* =====================================================================
   Hamburg Schlüsselexpress — legal.css (hs-legal__)
   Impressum + Datenschutz. Uses tokens and hs-wrap from main.css
   ===================================================================== */

/* Hero */
.hs-legal__hero { background: linear-gradient(rgba(0, 37, 74, .9), rgba(0, 37, 74, .94)), url("/assets/img/mainFon.webp") center / cover no-repeat; background-color: var(--hs-navy); border-bottom: 4px solid var(--hs-yellow); padding: 52px 0 56px; }
.hs-legal__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 26px; font-size: 13px; color: #fff; }
.hs-legal__crumbs a { color: var(--hs-cyan); font-weight: 700; transition: color .2s ease; }
.hs-legal__crumbs a:hover, .hs-legal__crumbs a:focus-visible { color: #fff; text-decoration: underline; }
.hs-legal__crumbs-sep { opacity: .5; }
.hs-legal__tag { display: inline-block; margin-bottom: 16px; padding-bottom: 6px; border-bottom: 2px solid var(--hs-yellow); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.hs-legal__title { max-width: 860px; margin-bottom: 18px; font-size: 48px; line-height: 1.1; color: #fff; overflow-wrap: anywhere; }
.hs-legal__lead { max-width: 740px; font-size: 17px; line-height: 1.65; color: #fff; }

/* Main */
.hs-legal__main { padding: 64px 0 88px; background: var(--color-surface-page); }
.hs-legal__main > .hs-wrap > * { min-width: 0; }

/* Key facts cards (impressum) */
.hs-legal__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 56px; }
.hs-legal__card { position: relative; min-width: 0; padding: 28px 26px 26px; background: #fff; border: 1px solid var(--hs-line); border-top: 4px solid var(--hs-yellow); border-radius: var(--radius-1); box-shadow: var(--shadow-1); }
.hs-legal__card-ico { width: 28px; height: 28px; margin-bottom: 14px; }
.hs-legal__card-title { margin-bottom: 12px; font-size: 28px; color: var(--hs-navy); }
.hs-legal__card-text { font-size: 15.5px; line-height: 1.7; color: var(--hs-text); overflow-wrap: anywhere; }
.hs-legal__card-text strong { color: var(--hs-ink); }

/* Facts list */
.hs-legal__facts { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 0; }
.hs-legal__card .hs-legal__facts { margin-top: 0; }
.hs-legal__facts li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 16px; font-size: 15.5px; line-height: 1.55; color: var(--hs-text); overflow-wrap: anywhere; }
.hs-legal__facts li > span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hs-blue); padding-top: 3px; }
.hs-legal__facts em { font-style: normal; color: var(--hs-text); }
.hs-legal__card .hs-legal__facts li { grid-template-columns: minmax(0, 1fr); }

/* Layout with table of contents (datenschutz) */
.hs-legal__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.hs-legal__toc { position: sticky; top: calc(var(--hs-head-h) + 24px); padding: 22px 22px 20px; background: #fff; border: 1px solid var(--hs-line); border-left: 4px solid var(--hs-yellow); border-radius: var(--radius-1); }
.hs-legal__toc-title { margin-bottom: 12px; font-family: Roboto, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hs-navy); }
.hs-legal__toc-list { display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.hs-legal__toc-list li { counter-increment: toc; }
.hs-legal__toc-list a { display: block; position: relative; padding: 6px 0 6px 26px; font-size: 14px; line-height: 1.4; color: var(--hs-text); transition: color .2s ease; }
.hs-legal__toc-list a::before { content: counter(toc) "."; position: absolute; left: 0; top: 6px; font-weight: 700; color: var(--hs-blue); }
.hs-legal__toc-list a:hover, .hs-legal__toc-list a:focus-visible { color: var(--hs-blue); text-decoration: underline; }

/* Reading column */
.hs-legal__body { max-width: 780px; }
.hs-legal__sec { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--hs-line); scroll-margin-top: calc(var(--hs-head-h) + 20px); }
.hs-legal__sec:last-child { margin-bottom: 0; border-bottom: 0; }
.hs-legal__h2 { position: relative; margin-bottom: 18px; padding-bottom: 12px; font-size: 34px; color: var(--hs-navy); overflow-wrap: anywhere; }
.hs-legal__h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--hs-yellow); }
.hs-legal__h3 { margin: 22px 0 8px; font-size: 26px; color: var(--hs-ink); }
.hs-legal__sec p { margin-bottom: 14px; font-size: 16px; line-height: 1.75; color: var(--hs-text); overflow-wrap: anywhere; }
.hs-legal__sec p:last-child { margin-bottom: 0; }
.hs-legal__sec strong { color: var(--hs-ink); }

/* Bullet list */
.hs-legal__list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.hs-legal__list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.65; color: var(--hs-text); }
.hs-legal__list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: url("/assets/icons/check-o.svg") center / contain no-repeat; }

/* Links */
.hs-legal__link { color: var(--hs-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.hs-legal__link:hover, .hs-legal__link:focus-visible { color: var(--hs-navy); background-color: var(--hover-5); outline: none; }
.hs-legal__link:focus-visible { outline: 2px solid var(--hs-blue); outline-offset: 2px; }

/* Closing note */
.hs-legal__aside-note { position: relative; margin-top: 8px; padding: 20px 24px 20px 62px; background: #fffbe0; border-left: 4px solid var(--hs-yellow); }
.hs-legal__aside-note > img { position: absolute; left: 24px; top: 22px; width: 22px; height: 22px; }
.hs-legal__aside-note p { font-size: 15px; line-height: 1.65; color: var(--hs-ink); }

/* Responsive */
@media (max-width: 1200px) {
  .hs-legal__title { font-size: 44px; }
  .hs-legal__layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .hs-legal__cards { gap: 18px; }
  .hs-legal__card { padding: 24px 20px 22px; }
}
@media (max-width: 1024px) {
  .hs-legal__main { padding: 52px 0 72px; }
  .hs-legal__cards { grid-template-columns: minmax(0, 1fr); margin-bottom: 44px; }
  .hs-legal__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hs-legal__toc { position: static; }
  .hs-legal__toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .hs-legal__body { max-width: none; }
}
@media (max-width: 768px) {
  .hs-legal__hero { padding: 40px 0 44px; }
  .hs-legal__title { font-size: 36px; }
  .hs-legal__lead { font-size: 16px; }
  .hs-legal__main { padding: 44px 0 60px; }
  .hs-legal__h2 { font-size: 30px; }
  .hs-legal__h3 { font-size: 24px; }
  .hs-legal__sec { padding-bottom: 28px; margin-bottom: 28px; }
}
@media (max-width: 480px) {
  .hs-legal__title { font-size: 24px; }
  .hs-legal__toc-list { grid-template-columns: minmax(0, 1fr); }
  .hs-legal__h2 { font-size: 27px; }
  .hs-legal__sec p, .hs-legal__list li { font-size: 15px; }
  .hs-legal__facts li { grid-template-columns: minmax(0, 1fr); }
  .hs-legal__card-title { font-size: 26px; }
  .hs-legal__aside-note { padding: 18px 16px 18px 52px; }
  .hs-legal__aside-note > img { left: 16px; top: 20px; }
}
@media (max-width: 375px) {
  .hs-legal__title { font-size: 22px; }
  .hs-legal__h2 { font-size: 25px; }
  .hs-legal__card { padding: 22px 16px 20px; }
}
