/* HYBOTE legal pages — shared corporate design */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #070b16;
  --s1: #0c1222;
  --s2: #131b30;
  --s3: #1c2740;
  --accent: #38bdf8;
  --accent-lt: #7dd3fc;
  --accent-deep: #0ea5e9;
  --fg: #f5f1eb;
  --a1: #d4cfc8;
  --a2: #b0a898;
  --a3: #8b95aa;
  --a4: #566070;
  --a5: #2c3550;
  --line: rgba(255, 255, 255, 0.06);
  --line-med: rgba(255, 255, 255, 0.1);
  --cyan-line: rgba(56, 189, 248, 0.24);
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  background:
    radial-gradient(80rem 46rem at 8% -12%, rgba(14, 165, 233, 0.13), transparent 58%),
    radial-gradient(58rem 38rem at 100% 22%, rgba(56, 189, 248, 0.07), transparent 64%),
    var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 62%);
}

::selection {
  background: rgba(56, 189, 248, 0.28);
  color: var(--fg);
}

a { color: var(--accent-lt); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(7, 11, 22, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.header-inner {
  width: min(100%, 1200px);
  height: 180px;
  margin: 0 auto;
  padding-inline: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link,
.brand-picture {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link { text-decoration: none; }

.brand-logo {
  display: block;
  width: auto;
  height: 160px;
  filter: invert(1);
}

.lang-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 34, 0.54);
}

.lang-pill {
  min-width: 30px;
  min-height: 36px;
  padding: 4px 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--a3);
  cursor: pointer;
  font: 400 0.68rem/1 'Montserrat', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.lang-pill:hover { color: var(--fg); }

.lang-pill.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

.lang-sep {
  color: var(--a5);
  font-size: 0.6rem;
  user-select: none;
}

.legal-main {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 260px 32px 100px;
}

.doc-hero {
  max-width: 900px;
  margin: 0 auto 42px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-bottom: 42px;
  color: var(--a3);
  font: 400 0.68rem/1 'Montserrat', sans-serif;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, gap 180ms ease;
}

.back-link:hover {
  gap: 13px;
  color: var(--accent-lt);
}

.doc-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--accent);
  font: 400 0.66rem/1.4 'Montserrat', sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.doc-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.52);
}

h1 {
  max-width: 880px;
  color: var(--fg);
  font: 300 clamp(3rem, 7vw, 5.75rem)/0.98 'Cormorant Garamond', serif;
  letter-spacing: -0.025em;
  overflow-wrap: normal;
  hyphens: auto;
}

.doc-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--a3);
  font-size: 0.76rem;
  line-height: 1.6;
}

.doc-date::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.72);
}

.legal-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.17);
  background:
    radial-gradient(52rem 24rem at 100% 0%, rgba(56, 189, 248, 0.075), transparent 62%),
    linear-gradient(145deg, rgba(19, 27, 48, 0.72), rgba(12, 18, 34, 0.82));
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-lt), transparent);
  opacity: 0.76;
}

.legal-content h2 {
  position: relative;
  margin: 52px 0 18px;
  padding-bottom: 15px;
  color: var(--fg);
  font: 400 clamp(1.45rem, 3vw, 1.85rem)/1.18 'Cormorant Garamond', serif;
  letter-spacing: -0.01em;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h2::after {
  content: '';
  position: absolute;
  inset: auto auto 0 0;
  width: 42px;
  height: 1px;
  background: var(--accent);
}

.legal-content p,
.legal-content li {
  color: var(--a1);
  font: 300 0.9rem/1.86 'Montserrat', sans-serif;
}

.legal-content p + p { margin-top: 16px; }

.legal-content ul {
  margin: 13px 0 18px;
  padding-inline-start: 22px;
}

.legal-content li {
  margin-bottom: 8px;
  padding-inline-start: 4px;
}

.legal-content li::marker { color: var(--accent); }

.legal-content strong {
  color: var(--fg);
  font-weight: 500;
}

.legal-content a {
  color: var(--accent-lt) !important;
  text-decoration-color: rgba(125, 211, 252, 0.42);
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.legal-content a:hover {
  color: var(--fg) !important;
  text-decoration-color: var(--fg);
}

.wa-box {
  position: relative;
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-inline-start: 2px solid var(--accent);
  background: rgba(7, 11, 22, 0.48);
}

.wa-box p,
.wa-box li { color: var(--a2); }

.wa-box strong { color: var(--fg); }

.legal-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 22, 0.58);
}

.footer-inner {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 30px 32px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-note {
  color: var(--a4);
  font-size: 0.72rem;
  line-height: 1.7;
}

.footer-note a {
  color: var(--a3) !important;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-note a:hover { color: var(--accent-lt) !important; }

html[dir='rtl'] body,
html[dir='rtl'] h1,
html[dir='rtl'] h2,
html[dir='rtl'] p,
html[dir='rtl'] li,
html[dir='rtl'] a,
html[dir='rtl'] button,
html[dir='rtl'] span,
html[dir='rtl'] div {
  font-family: 'Cairo', sans-serif;
}

html[dir='rtl'] .doc-label,
html[dir='rtl'] .back-link,
html[dir='rtl'] .lang-pill {
  letter-spacing: 0;
}

html[dir='rtl'] .back-link svg { transform: scaleX(-1); }

html[dir='rtl'] .legal-content h2::after {
  right: 0;
  left: auto;
}

@media (max-width: 767px) {
  .header-inner {
    height: 112px;
    padding-inline: 20px;
  }

  .brand-logo {
    width: clamp(96px, 29vw, 112px);
    height: auto;
    filter: none;
  }

  .lang-row { padding-inline: 8px; }

  .lang-pill {
    min-width: 28px;
    min-height: 42px;
    font-size: 0.65rem;
  }

  .legal-main {
    padding: 164px 20px 68px;
  }

  .doc-hero { margin-bottom: 30px; }

  .back-link { margin-bottom: 30px; }

  h1 { font-size: clamp(2.7rem, 13vw, 4rem); }

  html[lang='de'] h1 {
    font-size: clamp(2.5rem, 10.5vw, 3.4rem);
    hyphens: none;
  }

  .legal-card {
    width: calc(100% + 40px);
    margin-inline: -20px;
    padding: 36px 24px 46px;
    border-inline: 0;
  }

  .legal-content h2 { margin-top: 44px; }

  .wa-box {
    margin-inline: -8px;
    padding: 23px 20px;
  }

  .footer-inner {
    padding: 26px 20px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
