@import url("./styles.css?v=brand-refine-12");

html { scroll-behavior: smooth; }

body.utility-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #030405;
}

.utility-page .depth-scene { opacity: .62; }
.utility-page .depth-grid { opacity: .22; }
.utility-page .noise { position: fixed; }

.utility-header {
  position: relative;
  z-index: 20;
  width: min(1240px,calc(100% - 48px));
  height: 76px;
  margin: 18px auto 0;
  padding: 7px 12px 7px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(99,158,234,.27);
  border-radius: 22px;
  background: rgba(3,6,10,.76);
  box-shadow: 0 18px 55px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(22px);
}

.utility-header .brand-mark-3d { position: relative; inset: auto; }
.utility-actions { display: flex; align-items: center; gap: 10px; }
.utility-back {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(91,161,252,.5);
  border-radius: 99px;
  color: #e9f2ff;
  font-size: 12px;
  background: rgba(12,22,35,.7);
  transition: transform .35s var(--ease),border-color .35s ease,background .35s ease;
}
.utility-back:hover { transform: translateY(-2px); border-color: #72b2ff; background: rgba(22,45,73,.78); }
.utility-back span { color: #6daeff; font-size: 16px; }

.utility-language {
  width: 54px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  color: #c9d3df;
  background: rgba(255,255,255,.035);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  cursor: pointer;
  transition: color .3s ease,border-color .3s ease,background .3s ease;
}
.utility-language:hover { color: white; border-color: rgba(105,174,255,.75); background: rgba(46,132,247,.1); }

.legal-shell {
  position: relative;
  z-index: 2;
  width: min(1120px,calc(100% - 48px));
  margin: 0 auto;
  padding: 105px 0 120px;
}

.legal-hero { max-width: 890px; margin-bottom: 72px; }
.legal-kicker {
  margin: 0 0 22px;
  color: #75b2ff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.legal-hero h1 {
  margin: 0;
  color: #f5f8fc;
  font-size: clamp(52px,8vw,104px);
  font-weight: 400;
  line-height: .91;
  letter-spacing: -.065em;
}
.legal-hero h1 em { color: #5da4ff; font-family: inherit; font-style: normal; font-weight: 300; }
.legal-lead { max-width: 680px; margin: 30px 0 0; color: #aeb9c6; font-size: 15px; line-height: 1.75; }
.legal-meta { margin-top: 22px; color: #667483; font-size: 11px; letter-spacing: .04em; }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: clamp(42px,8vw,110px); align-items: start; }
.legal-toc {
  position: sticky;
  top: 28px;
  padding: 20px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(8,13,20,.68);
  backdrop-filter: blur(18px);
}
.legal-toc strong { margin: 0 0 9px 10px; color: #657383; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.legal-toc a { padding: 9px 10px; border-radius: 9px; color: #aab5c1; font-size: 11px; line-height: 1.35; transition: color .3s ease,background .3s ease; }
.legal-toc a:hover { color: white; background: rgba(46,132,247,.1); }

.legal-content { min-width: 0; }
.legal-alert {
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid rgba(255,184,78,.34);
  border-radius: 14px;
  color: #e4cda7;
  background: rgba(116,67,8,.12);
  font-size: 12px;
  line-height: 1.65;
}
.legal-alert strong { color: #ffd08a; }
.legal-card {
  margin-bottom: 16px;
  padding: clamp(25px,4vw,42px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: linear-gradient(145deg,rgba(12,19,29,.78),rgba(3,6,10,.9));
  box-shadow: 0 24px 70px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.028);
  scroll-margin-top: 28px;
}
.legal-card > span { display: block; margin-bottom: 30px; color: #5c9ef3; font-size: 9px; letter-spacing: .14em; }
.legal-card h2 { margin: 0 0 20px; color: #eef4fb; font-size: clamp(25px,3vw,37px); font-weight: 450; line-height: 1.05; letter-spacing: -.035em; }
.legal-card h3 { margin: 28px 0 10px; color: #dfe7f0; font-size: 15px; font-weight: 500; }
.legal-card p,.legal-card li { color: #aeb8c3; font-size: 13px; line-height: 1.75; }
.legal-card p { margin: 0 0 14px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul { margin: 12px 0 18px; padding: 0; display: grid; gap: 8px; list-style: none; }
.legal-card li { position: relative; padding-left: 18px; }
.legal-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: #4f9cff; box-shadow: 0 0 7px rgba(46,132,247,.65); }
.legal-card a { color: #83baff; text-decoration: underline; text-decoration-color: rgba(131,186,255,.3); text-underline-offset: 4px; }
.legal-card address { color: #d4dbe4; font-style: normal; font-size: 14px; line-height: 1.8; }
.legal-placeholder { color: #efc47f; }

.legal-footer {
  position: relative;
  z-index: 2;
  width: min(1120px,calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #74808d;
  font-size: 11px;
}
.legal-footer div { display: flex; gap: 20px; }
.legal-footer a { color: #a9b4c0; }
.legal-footer a:hover { color: white; }

[data-copy="en"] { display: none; }
html[lang="en"] [data-copy="de"] { display: none; }
html[lang="en"] [data-copy="en"] { display: block; }
html[lang="en"] .legal-layout[data-copy="en"] { display: grid; }

.error-shell {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 95px);
  width: min(1180px,calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 80px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: clamp(40px,8vw,120px);
}
.error-code { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.error-code::before,.error-code::after { content: ""; position: absolute; border: 1px solid rgba(70,151,255,.3); border-radius: 50%; animation: utility-orbit 14s linear infinite; }
.error-code::before { inset: 3%; box-shadow: 0 0 70px rgba(46,132,247,.12),inset 0 0 55px rgba(46,132,247,.05); }
.error-code::after { inset: 19%; border-color: rgba(255,255,255,.16); animation-direction: reverse; animation-duration: 9s; }
.error-code span { position: relative; z-index: 1; color: #eef6ff; font-size: clamp(105px,18vw,230px); font-weight: 250; letter-spacing: -.1em; text-shadow: 0 0 60px rgba(46,132,247,.22); }
.error-code i { position: absolute; width: 10px; height: 10px; top: 13%; left: 50%; border-radius: 50%; background: #65aaff; box-shadow: 0 0 18px #3d91ff; transform-origin: 0 calc(37vw / 2); animation: error-dot 8s linear infinite; }
.error-copy .legal-kicker { margin-bottom: 18px; }
.error-copy h1 { max-width: 620px; margin: 0; color: #f3f7fc; font-size: clamp(48px,6vw,82px); font-weight: 400; line-height: .95; letter-spacing: -.055em; }
.error-copy p { max-width: 540px; margin: 28px 0 34px; color: #aeb8c4; font-size: 15px; line-height: 1.7; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.error-actions .arrow-button { min-width: 190px; justify-content: space-between; }

@keyframes utility-orbit { to { transform: rotate(360deg); } }
@keyframes error-dot { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .utility-header { width: calc(100% - 28px); height: 68px; margin-top: 12px; border-radius: 19px; }
  .utility-header .brand-mark-3d { height: 50px; }
  .utility-back { width: 42px; padding: 0; justify-content: center; }
  .utility-back b { display: none; }
  .legal-shell { width: calc(100% - 34px); padding: 74px 0 90px; }
  .legal-hero { margin-bottom: 48px; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  html[lang="en"] .legal-layout[data-copy="en"] { grid-template-columns: 1fr; }
  .legal-toc { position: relative; top: auto; grid-template-columns: 1fr 1fr; }
  .legal-toc strong { grid-column: 1 / -1; }
  .legal-footer { width: calc(100% - 34px); flex-direction: column; }
  .error-shell { width: calc(100% - 34px); min-height: auto; padding: 70px 0 100px; grid-template-columns: 1fr; text-align: center; }
  .error-code { width: min(430px,90vw); margin: auto; }
  .error-code i { display: none; }
  .error-copy p { margin-inline: auto; }
  .error-actions { justify-content: center; }
}

@media (max-width: 520px) {
  .utility-header .brand-wordmark-png { width: 96px; }
  .utility-actions { gap: 6px; }
  .utility-language { width: 46px; }
  .legal-hero h1 { font-size: 51px; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-toc strong { grid-column: auto; }
  .legal-card { border-radius: 18px; }
  .legal-footer div { flex-wrap: wrap; }
  .error-shell { padding-top: 46px; }
  .error-code { width: min(330px,86vw); }
  .error-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .error-code::before,.error-code::after,.error-code i { animation: none; }
}
