:root {
  --blue: #1656a6;
  --blue-deep: #0d438c;
  --blue-dark: #072c5e;
  --ink: #1e2b3b;
  --muted: #5f6d7d;
  --line: #dce6f1;
  --wash: #f5f9fd;
  --visitcard_bg : #f5f4f1;
  --white: #fff;
  --shadow: 0 18px 50px rgba(9, 52, 107, .12);
  --max: 1180px;
  --header-height: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-180%); background: #fff; color: var(--blue-dark); padding: .7rem 1rem; border-radius: .4rem; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #82b7f5; outline-offset: 3px; }
.display-none { display: none; appearance:none; visibility:hidden;}
.is-open { display: block;}

/* Branded CSS3 page loader – isolated from the page layout. */
.page-loader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--blue-deep);
  background: var(--visitcard_bg);
  cursor: wait;
  animation: page-loader-fallback .45s 3.5s cubic-bezier(.65,0,.35,1) forwards;
}
.no-js:not(.loader-ready) .page-loader { display: none; }
.page-loader__content { width: min(280px, 76vw); text-align: center; }
.page-loader__mark {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
}
.page-loader__mark img {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  animation: page-loader-logo .65s cubic-bezier(.2,.8,.2,1) both;
}
.page-loader__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(13,67,140,.18);
  border-top-color: var(--blue-deep);
  border-radius: 50%;
  animation: page-loader-orbit 1.15s cubic-bezier(.55,.15,.35,.85) infinite;
}
.page-loader__name {
  margin: 0;
  font-family: "Arial Narrow", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.32rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  animation: page-loader-rise .5s .18s ease-out both;
}
.page-loader__name span { font-size: .52em; vertical-align: top; }
.page-loader__line {
  display: block;
  width: 100%;
  height: 2px;
  margin: .9rem auto .75rem;
  background: var(--blue-deep);
  transform-origin: left center;
  animation: page-loader-line .72s .22s cubic-bezier(.65,0,.35,1) both;
}
.page-loader__label {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: page-loader-rise .5s .34s ease-out both;
}
.is-loaded .page-loader {
  pointer-events: none;
  animation: page-loader-exit .52s cubic-bezier(.65,0,.35,1) forwards;
}
@keyframes page-loader-logo {
  from { opacity: 0; transform: scale(.82); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes page-loader-orbit {
  to { transform: rotate(360deg); }
}
@keyframes page-loader-line {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes page-loader-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes page-loader-exit {
  0% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes page-loader-fallback {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__mark img,
  .page-loader__orbit,
  .page-loader__name,
  .page-loader__line,
  .page-loader__label { animation: none; }
  .is-loaded .page-loader { animation-duration: .01s; }
}

/* Progressive scroll reveals: content stays visible if JavaScript is absent. */
.reveal-ready .scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity .62s ease-out var(--reveal-delay, 0ms),
    transform .72s cubic-bezier(.2,.75,.25,1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Footer links remain immediately visible and are intentionally not animated. */
.reveal-ready .footer-meta > * {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (max-width: 520px) {
  .reveal-ready .scroll-reveal { transform: translate3d(0, 14px, 0); }
  .reveal-ready .scroll-reveal.is-visible { transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .scroll-reveal,
  .reveal-ready .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

h1, h2, h3, .kicker, .eyebrow { overflow-wrap: anywhere; hyphens: auto; font-family: "Arial Narrow", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif; letter-spacing: .01em; }
h2 { margin: 0; overflow-wrap: anywhere; hyphens: auto; color: var(--blue); font-size: clamp(2.35rem, 5vw, 3rem); line-height: .98; text-transform: uppercase; font-weight: 800; letter-spacing: -.025em; }
.kicker, .eyebrow { margin: 0 0 .65rem; color: var(--blue); font-size: .93rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }

.site-header { position: relative; isolation: isolate; min-height: clamp(680px, 82svh, 840px); overflow: clip; color: #fff; background: #092a51; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { z-index: -2; background: center / cover no-repeat url("../images/steyr-panorama.jpg"); }
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero-media { background-image: image-set(url("../images/steyr-panorama.webp") type("image/webp"), url("../images/steyr-panorama.jpg") type("image/jpeg")); }
}
.hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(2,20,41,.90) 0%, rgba(3,27,55,.78) 43%, rgba(5,31,61,.45) 67%, rgba(5,31,61,.16) 100%); }
.header-bar { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; z-index: 10; }
.brand { width: 90px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); flex: 0 0 auto; }
.brand img { width: 100%; height: 100%; object-fit: cover; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2rem); font-weight: 700; font-size: .96rem; }
.primary-nav a { text-decoration: none; text-transform:uppercase; padding: .65rem .1rem; border-bottom: 2px solid transparent; }
.primary-nav a:hover { border-bottom-color: rgba(255,255,255,.8); }
.primary-nav .nav-cta { border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: .7rem 1.1rem; }
.primary-nav .nav-cta:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.nav-toggle { display: none; appearance: none; width: 48px; height: 48px; padding: 11px 9px; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; background: rgba(4,24,47,.45); color: #fff; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; width: 100%; margin: 5px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: end; gap: clamp(1rem, 4vw, 4rem); min-height: calc(clamp(680px, 82svh, 840px) - var(--header-height)); }
.hero-copy { align-self: center; min-width: 0; max-width: 710px; padding: 3.5rem 0 4.5rem; }
.hero-copy .eyebrow { color: #a7cbf6; }
.hero h1, .site-header h1 { margin: 0 0 1rem; font-size: clamp(3.4rem, 6.7vw, 6.55rem); line-height: .87; text-transform: uppercase; letter-spacing: -.04em; font-weight: 800; }
.degree { display: inline-block; font-size: .36em; vertical-align: top; margin-top: .08em; letter-spacing: 0; text-transform:none;}


.site-header-card h1.name-lockup, 
h2#profil-title.name-lockup {
  display: grid;
  grid-template-columns: max-content max-content;
  grid-template-rows: auto auto;
  justify-content: start;
  align-items: start;
  column-gap: .025em;
  row-gap: .07em;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: #fff;

  text-transform: uppercase;
  hyphens: none;
  margin-bottom: 20px;
}

.name-lockup .name-first { grid-area: 1 / 1; }
.name-lockup .name-last { grid-area: 2 / 1; }
 
.name-lockup .name-degree {
  grid-area: 1 / 2;
  align-self: start;
  margin: .08em 0 0;
  font-size: .2em;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.subtitle { margin: 0; max-width: 660px; font-size: clamp(1rem, 1.7vw, 1.45rem); line-height: 1.32; text-transform: uppercase; }
.rule { width: 86px; height: 4px; margin: 1.7rem 0 1.45rem; border-radius: 2px; background: #2f7fdc; }
blockquote { margin: 0; padding-left: 1.1rem; border-left: 3px solid #2f7fdc; max-width: 620px; font-size: clamp(1.2rem, 2vw, 1.85rem); line-height: 1.3; font-style: italic; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 1.8rem; padding: .85rem 1.3rem; border-radius: 999px; font-weight: 800; text-decoration: none; }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.button-primary:hover { background: #1b67c5; }
.hero-portrait-wrap { align-self: end; justify-self: end; width: min(510px, 100%); min-width: 0; }
.hero-portrait { width: 100%; height: auto; filter: drop-shadow(0 20px 34px rgba(0,0,0,.18)); }

.intro { position: relative; z-index: 2; background: #fff; }
.intro-card { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 1.75rem; align-items: start; max-width: 980px; padding-block: 2.8rem; }
.intro-icon { width: 72px; height: 72px; margin-top: .15rem; display: grid; place-items: center; color: var(--blue); border: 1px solid var(--line); border-radius: 18px; }
.intro-icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.intro p { margin: 0; font-size: clamp(1.12rem, 2vw, 1.38rem); }
.intro strong { color: var(--blue-deep); }

.section { padding: clamp(3.75rem, 7vw, 5.4rem) 0; }
.section-alt { background: var(--visitcard_bg); }
.section-head { max-width: 920px; margin-bottom: 2.4rem; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .3rem 2.4rem; }
.service { min-width: 0; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 1.05rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; color: var(--blue); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.service-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin: .15rem 0 .3rem; color: var(--blue-deep); font-size: 1.25rem; line-height: 1.2; }
.service p { margin: 0; color: var(--muted); font-size: 1rem; overflow-wrap: anywhere; }
#leistungen .section-head h2 { font-size: clamp(2.35rem, 5vw, 2.5rem);}

.profile-grid { display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr); gap: clamp(2rem, 6vw, 4rem); align-items: start; }
h2#profil-title span {text-transform:none;}
.profile-title { position: sticky; top: 1.5rem; text-transform:none;}
.profile-copy { min-width: 0; font-size: clamp(1.05rem, 1.7vw, 1.18rem); }
.profile-copy p { margin: 0 0 1.15rem; }
.fact { margin-top: 1.6rem !important; padding: 1.3rem 1.5rem; border-left: 4px solid var(--blue); background: var(--wash); font-weight: 700; }

.competence { background: linear-gradient(90deg, var(--visitcard_bg), #fff); }
.competence-card { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 2rem; padding: clamp(1.7rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.competence-symbol { width: 92px; height: 92px; display: grid; place-items: center; color: var(--blue); border: 2px solid var(--blue); border-radius: 50%; font-size: 2.5rem; }
.competence h2 { margin-bottom: 1.15rem; font-size: clamp(2.25rem, 4.4vw, 3.65rem); }
.competence p { margin: 0 0 .9rem; font-size: 1.08rem; }
.linkline a { color: var(--blue); font-weight: 800; text-underline-offset: .17em; }

.contact { color: #fff; background: linear-gradient(135deg, var(--blue-dark), #0b58ad); padding: 3.5rem 0 2rem; }
.contact h2 { color: #fff; }
.kicker-light { color: #b9d7fa; }
.contact-heading { margin-bottom: 1.8rem; }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); }
.contact-item { min-width: 0; min-height: 146px; padding: 1.45rem 1rem; border-right: 1px solid rgba(255,255,255,.22); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow-wrap: anywhere; }
.contact-item:last-child { border-right: 0; }
.contact-item svg { width: 30px; height: 30px; margin-bottom: .8rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.contact-item strong { display: block; margin-bottom: .2rem; }
.contact-item a { text-decoration-thickness: 1px; text-underline-offset: .17em; }
.footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.35rem; color: rgba(255,255,255,.8); font-size: .86rem; }
.footer-meta p { margin: 0; }
.footer-logo { width: 58px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #fff; }
.footer-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Intro claim moved out of the hero */
.intro-card > div:last-child { min-width: 0; }
.intro-claim { margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.intro-claim .rule { margin: 0 0 1.15rem; }
.intro-claim blockquote { color: var(--ink); border-left-color: var(--blue); font-size: clamp(1.18rem, 2vw, 1.62rem); }
.intro-claim .button { margin-top: 1.35rem; }

/* WHY / trust section — light variant to continue the alternating page rhythm */
.why-section { position: relative; overflow: hidden; color: var(--ink); background: var(--white); border-top: 1px solid var(--line); }
.why-section::after { content: ""; position: absolute; right: -12vw; bottom: -45%; width: min(46vw, 680px); aspect-ratio: 1; border: 1px solid rgba(22,86,166,.06); border-radius: 50%; pointer-events: none; }
.why-head { position: relative; z-index: 1; max-width: 860px; margin: 0 auto clamp(2.2rem, 4.5vw, 3.2rem); text-align: center; }
.why-head .kicker { display: inline-flex; align-items: center; gap: .65rem; color: var(--blue); }
.why-head .kicker::before { content: ""; width: 30px; height: 2px; border-radius: 2px; background: #2f7fdc; }
.why-head h2 { max-width: 820px; margin-inline: auto; color: var(--blue); }
.why-head > p:last-child { max-width: 680px; margin: 1rem auto 0; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.16rem); }
.why-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); }
.why-item { min-width: 0; padding-top: 1.25rem; border-top: 2px solid var(--line); }
.why-number { display: inline-block; margin-bottom: .75rem; color: var(--blue); font-size: .82rem; line-height: 1; font-weight: 800; letter-spacing: .12em; }
.why-item h3 { margin: 0 0 .55rem; color: var(--blue-deep); font-size: 1.16rem; line-height: 1.2; }
.why-item p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.58; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  :root { --header-height: 96px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(260px,.72fr); gap: 1rem; }
  .brand { width: 76px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-item { border-bottom: 1px solid rgba(255,255,255,.2); }
  .contact-item:nth-child(2n) { border-right: 0; }
  .contact-item:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 10px; }
  #profil, #leistungen, #warum, #dianor, #kontakt { scroll-margin-top: 10px; }
  .container { width: min(var(--max), calc(100% - 28px)); }
  .site-header { min-height: auto; overflow: hidden; }
  .hero-shade { background: linear-gradient(180deg, rgba(2,20,41,.90) 0%, rgba(3,27,55,.77) 58%, rgba(5,31,61,.48) 100%); }
  .header-bar { min-height: 92px; }
  .brand { width: 68px; }
  .nav-toggle { display: block; }
  .no-js .nav-toggle { display: none; }
  .primary-nav { position: absolute; top: 82px; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: .15rem; padding: .75rem; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(4,24,47,.97); box-shadow: 0 18px 40px rgba(0,0,0,.2); }
  .primary-nav a { padding: .8rem .9rem; border: 0; border-radius: 8px; }
  .primary-nav a:hover { background: rgba(255,255,255,.08); }
  .primary-nav .nav-cta { border-radius: 8px; }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: flex; }
  .nav-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { order: 1; padding: 2.1rem 0 1rem; max-width: none; }
  .site-header h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .subtitle { max-width: 100%; font-size: clamp(.96rem, 4.2vw, 1.15rem); }
  blockquote { max-width: 100%; font-size: clamp(1.12rem, 5.2vw, 1.45rem); }
  .hero-portrait-wrap { order: 2; width: min(430px, 88vw); max-width: 100%; justify-self: end; margin-right: 0; }
  .button { margin-top: 1.35rem; }
  .intro-card { grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem; }
  .intro-claim { margin-top: 1.35rem; padding-top: 1.3rem; }
  .section { padding-block: 3.6rem; }
  .profile-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .profile-title { position: static; }
  .competence-card { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .competence-symbol { width: 76px; height: 76px; font-size: 2rem; }
}

@media (max-width: 520px) {
  .site-header h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .degree { font-size: .33em; }
  .hero-copy .eyebrow { font-size: .8rem; }
  .hero-portrait-wrap { width: min(400px, 100%); margin-right: 0; }
  .service { grid-template-columns: 48px minmax(0,1fr); gap: .8rem; }
  .service-icon { width: 46px; height: 46px; border-radius: 12px; }
  .service-icon svg { width: 27px; height: 27px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { padding-top: 1.1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item, .contact-item:nth-child(2n), .contact-item:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .contact-item:last-child { border-bottom: 0; }
  .footer-meta { align-items: flex-start; }
}

@media (max-width: 340px) {
  .container { width: calc(100% - 20px); }
  .header-bar { min-height: 84px; }
  .brand { width: 60px; }
  .primary-nav { top: 76px; }
  .site-header h1 { font-size: 2.65rem; }
  blockquote { font-size: 1.05rem; }
  .hero-portrait-wrap { margin-right: 0; }
  h2 { font-size: 2.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .nav-toggle, .primary-nav, .button { display: none !important; }
  .site-header { min-height: 560px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .section { padding-block: 2.5rem; }
  a { text-decoration: none; }
}


/* Shared navigation and legal pages */
.primary-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.9); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem 1rem; }
.footer-nav a { color: #fff; text-decoration: none; text-underline-offset: .18em; }
.footer-nav a:hover, .footer-nav a:focus-visible, .footer-nav a[aria-current="page"] { text-decoration: underline; }

.site-header-compact { min-height: 390px; }
.site-header-compact .hero-shade { background: linear-gradient(90deg, rgba(2,20,41,.91) 0%, rgba(3,27,55,.76) 55%, rgba(5,31,61,.32) 100%); }
.legal-hero-copy { min-width: 0; max-width: 1100px; padding: clamp(2rem, 5vw, 3.4rem) 0 clamp(3rem, 6vw, 4.2rem); }
.legal-hero-copy .eyebrow { color: #a7cbf6; }
.site-header-compact .legal-hero-copy h1 { margin: 0 0 1rem; font-size: clamp(2.7rem, 4.7vw, 4.5rem); line-height: .92; text-transform: uppercase; letter-spacing: -.035em; font-weight: 800; }
.legal-hero-copy > p:last-child { max-width: 700px; margin: 0; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.9); }

.legal-main { padding: clamp(3.5rem, 7vw, 6rem) 0; background: linear-gradient(180deg, var(--wash) 0, #fff 220px); }
.legal-shell { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 820px); justify-content: center; align-items: start; gap: clamp(2rem, 5vw, 4rem); }
.legal-toc { min-width: 0; position: sticky; top: 1.25rem; }
.toc-card { max-height: calc(100vh - 2.5rem); overflow: auto; padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 12px 34px rgba(9,52,107,.08); }
.toc-title { margin: 0 0 .85rem; color: var(--blue-deep); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.toc-card ol { margin: 0; padding-left: 0; list-style: none; }
.toc-card ol ol { margin-top: .4rem; padding-left: 1.15rem; }
.toc-card li { margin: .42rem 0; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.toc-card .toc-level-3 { margin-left: .55rem; font-size: .84rem; }
.toc-card a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.toc-card a:hover, .toc-card a:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: .16em; }

.legal-article { min-width: 0; max-width: 820px; color: var(--ink); font-size: 1.02rem; line-height: 1.72; }
.legal-article section + section { margin-top: 3.25rem; padding-top: .25rem; }
.legal-article h2, .legal-article h3, .legal-article h4 { text-transform: none; hyphens: auto; overflow-wrap: anywhere; scroll-margin-top: 1rem; }
.legal-article h2 { margin: 3.2rem 0 1rem; color: var(--blue); font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.13; letter-spacing: -.015em; }
.legal-article section > h2:first-child, .legal-article > h2:first-child { margin-top: 0; }
.legal-article h3 { margin: 2.35rem 0 .8rem; color: var(--blue-deep); font-size: clamp(1.3rem, 2.3vw, 1.62rem); line-height: 1.22; }
.legal-article h4 { margin: 1.9rem 0 .65rem; color: var(--ink); font-size: 1.14rem; line-height: 1.3; }
.legal-article p { margin: 0 0 1rem; }
.legal-article a { color: var(--blue); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .18em; overflow-wrap: anywhere; word-break: break-word; }
.legal-list { margin: .8rem 0 1.25rem; padding-left: 1.4rem; }
.legal-list li { margin: .38rem 0; padding-left: .25rem; }
.legal-alpha { padding-left: 1rem; border-left: 2px solid var(--line); }

.legal-data-card { padding: clamp(1.25rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.legal-data-list { margin: 0; }
.legal-data-list > div { display: grid; grid-template-columns: minmax(130px, .42fr) minmax(0, 1fr); gap: 1rem; padding: .72rem 0; border-bottom: 1px solid var(--line); }
.legal-data-list > div:last-child { border-bottom: 0; }
.legal-data-list dt { font-weight: 800; color: var(--blue-deep); }
.legal-data-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.legal-data-list-plain { padding: .2rem 0; }
.expertise-list { display: grid; gap: 1rem; }
.expertise-item { padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: 16px; background: var(--wash); }
.expertise-item .expertise-code { margin: 0 0 .25rem; color: var(--blue); font-weight: 800; letter-spacing: .05em; }
.expertise-item h3 { margin: 0 0 .45rem; font-size: 1.2rem; }
.expertise-item p:last-child { margin-bottom: 0; color: var(--muted); }
.privacy-article > h2:first-child { margin-top: 0; }

@media (max-width: 1100px) and (min-width: 901px) {
  .primary-nav { gap: .85rem; font-size: .91rem; }
  .primary-nav .nav-cta { padding-inline: .9rem; }
}

@media (max-width: 980px) {
  .legal-shell { grid-template-columns: minmax(0, 820px); }
  .legal-toc { position: static; }
  .toc-card { max-height: none; }
  .toc-card ol { columns: 2; column-gap: 2.2rem; }
  .toc-card ol ol { columns: 1; }
}

@media (max-width: 900px) {
  .site-header-compact { min-height: auto; }
  .site-header-compact .legal-hero-copy h1 { font-size: clamp(1.5rem, 7.4vw, 2.3rem); overflow-wrap: normal; word-break: normal; hyphens: none; letter-spacing: -.04em; }
  .legal-hero-copy { padding-top: 1.9rem; padding-bottom: 3rem; }
  .legal-main { padding-block: 3.25rem; }
  .toc-card ol { columns: 1; }
  .legal-article { font-size: 1rem; line-height: 1.68; }
  .legal-article h2 { margin-top: 2.7rem; }
  .footer-meta { flex-wrap: wrap; }
  .footer-nav { flex-basis: 100%; justify-content: flex-start; padding-top: .35rem; }
}

@media (max-width: 520px) {
  .legal-data-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .legal-data-list dt { font-size: .92rem; }
  .toc-card { padding: 1.05rem; border-radius: 14px; }
  .expertise-item { padding: 1.1rem; }
}
