/* ============ 21Layer — shared legal-page stylesheet (Impressum / Datenschutz) ============ */
:root {
  --ink: #f4f6f8;
  --ah: 44px;
  --pad-x: clamp(22px, 5.5vw, 116px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* content */
  --paper: #f7f6f2;
  --text: #1b211f;
  --text-soft: #4a5552;
  --text-faint: #8a938f;
  --rule: #e4e3dc;
  --accent: #16463a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Announcement bar ---------- */
.announce {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--ah);
  display: flex; align-items: center; justify-content: center; gap: 0.7em;
  padding: 0 16px;
  background: #f6f5f2; color: #0a0d12;
  font-size: clamp(12px, 0.92vw, 13.5px); font-weight: 500; letter-spacing: 0.005em;
  text-align: center;
  transition: transform 0.55s var(--ease);
}
.announce.hidden { transform: translateY(-100%); }
.announce__dot { width: 6px; height: 6px; border-radius: 50%; background: #0a0d12; flex: none; }
.announce a { color: inherit; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.announce a .arrow { transition: transform 0.35s var(--ease); }
.announce a:hover .arrow { transform: translateX(3px); }
.announce .label { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.86em; opacity: 0.55; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: var(--ah); left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 2vw, 26px) var(--pad-x);
  background: transparent; border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  transition: background 0.55s var(--ease), border-color 0.55s var(--ease),
              backdrop-filter 0.55s var(--ease), padding 0.55s var(--ease), top 0.55s var(--ease);
}
.nav.scrolled {
  top: 0;
  background: linear-gradient(180deg, rgba(20, 26, 34, 0.42), rgba(8, 11, 15, 0.32));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(34px) saturate(190%) brightness(1.04);
  -webkit-backdrop-filter: blur(34px) saturate(190%) brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.03), 0 12px 40px rgba(0, 0, 0, 0.22);
  padding-top: clamp(12px, 1.4vw, 18px); padding-bottom: clamp(12px, 1.4vw, 18px);
}
.wordmark {
  font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink); text-decoration: none; line-height: 1; -webkit-user-select: none; user-select: none;
}
.wordmark span { font-weight: 400; opacity: 0.72; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); margin: 0 auto; }
.nav-link {
  position: relative; font-size: clamp(13px, 1vw, 14.5px); font-weight: 450; letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.74); text-decoration: none; line-height: 1; padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; opacity: 0.6;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ---------- Glass buttons ---------- */
.btn-glass {
  position: relative; display: inline-flex; align-items: center; gap: 0.6em;
  font-family: inherit; font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer;
  isolation: isolate; border: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 46%, rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(22px) saturate(180%) brightness(1.08); -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.08);
  border-radius: 100px;
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 -8px 16px rgba(255, 255, 255, 0.04), 0 6px 22px rgba(0, 0, 0, 0.28);
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
  will-change: transform;
}
.btn-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 38%);
  opacity: 0.55; mix-blend-mode: screen; pointer-events: none; z-index: -1; transition: opacity 0.45s var(--ease);
}
.btn-glass:hover {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08) 46%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 -10px 20px rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 38px rgba(255, 255, 255, 0.14), 0 8px 26px rgba(0, 0, 0, 0.3);
  transform: translateY(-1.5px);
}
.btn-glass:hover::before { opacity: 0.85; }
.btn-glass:active { transform: translateY(0); }
.btn-nav {
  font-size: clamp(13px, 1vw, 14.5px); letter-spacing: 0.01em; padding: 0.62em 1.2em;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0.03)), rgba(10, 14, 20, 0.28);
  backdrop-filter: blur(30px) saturate(180%) brightness(0.92); -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(0.92);
}
.btn-nav:hover {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1) 46%, rgba(255, 255, 255, 0.05)), rgba(10, 14, 20, 0.22);
}

/* ---------- Legal hero (green marble) ---------- */
.legal-hero {
  position: relative;
  height: clamp(380px, 52vh, 620px);
  display: grid; place-items: center;
  text-align: center;
  padding: calc(var(--ah) + 40px) var(--pad-x) 40px;
  background: #0c1f1a url("assets/marble-green.png") center / cover no-repeat;
  overflow: hidden;
}
/* dark overlay so the transparent nav + title stay legible over lighter marble veins */
.legal-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 16, 13, 0.66) 0%, rgba(6, 16, 13, 0.34) 36%, rgba(6, 16, 13, 0.44) 100%),
    radial-gradient(120% 90% at 50% 30%, rgba(6, 16, 13, 0) 40%, rgba(6, 16, 13, 0.4) 100%);
}
.legal-hero__inner { position: relative; z-index: 1; }
.legal-hero h1 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #f4f7f5;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.legal-hero .legal-stand {
  margin-top: clamp(14px, 1.8vw, 20px);
  font-size: clamp(12.5px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 239, 236, 0.62);
}

/* ---------- Legal content ---------- */
.legal-content {
  background: var(--paper);
  padding: clamp(56px, 9vh, 120px) var(--pad-x) clamp(64px, 11vh, 140px);
}
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-doc > * + * { margin-top: 1.1em; }
.legal-doc h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.32rem, 2vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: clamp(36px, 5vh, 58px);
  padding-top: clamp(20px, 2.6vh, 30px);
  border-top: 1px solid var(--rule);
}
.legal-doc h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-doc p {
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  line-height: 1.72;
  color: var(--text-soft);
  text-wrap: pretty;
}
.legal-doc strong { color: var(--text); font-weight: 600; }
.legal-doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; word-break: break-word; transition: color 0.3s var(--ease); }
.legal-doc a:hover { color: #0d2e25; }
.legal-doc ul { margin-top: 1.1em; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 0.7em; }
.legal-doc li {
  position: relative; padding-left: 1.5em;
  font-size: clamp(1rem, 1.05vw, 1.08rem); line-height: 1.6; color: var(--text-soft); text-wrap: pretty;
}
.legal-doc li::before {
  content: ""; position: absolute; left: 0.1em; top: 0.72em;
  width: 12px; height: 1px; background: var(--accent); opacity: 0.7;
}

/* ---------- Footer (from main page) ---------- */
.footer {
  --pine: #0f2d25; --pine-deep: #0b231d; --ivory: #e9efec;
  --muted: rgba(233, 239, 236, 0.55); --faint: rgba(233, 239, 236, 0.38); --hair: rgba(233, 239, 236, 0.14);
  --pad-x: clamp(24px, 5.5vw, 116px);
  background: linear-gradient(180deg, var(--pine), var(--pine-deep));
  padding: clamp(48px, 6vh, 80px) var(--pad-x) clamp(22px, 3vh, 34px);
  overflow: hidden;
}
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); max-width: 880px; }
.ft-col h3 { font-size: clamp(11px, 0.85vw, 12.5px); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: clamp(16px, 1.8vh, 22px); }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: clamp(10px, 1.2vh, 14px); }
.ft-col a { font-size: clamp(14px, 1.05vw, 15.5px); font-weight: 400; color: var(--muted); text-decoration: none; transition: color 0.35s var(--ease); }
.ft-col a:hover { color: var(--ivory); }
.ft-mark { margin: clamp(36px, 5vh, 68px) 0 clamp(28px, 4vh, 52px); text-align: center; overflow: visible; }
.ft-mark .mark {
  display: block; font-size: 120px; line-height: 0.9; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: transform, opacity;
}
.ft-mark .mark .inner { display: inline-block; white-space: nowrap; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.38)); }
.ft-mark .mark strong, .ft-mark .mark span:not(.inner) { -webkit-background-clip: text; background-clip: text; color: transparent; }
.ft-mark .mark strong { font-weight: 700; background-image: linear-gradient(#f1f5f3, #f1f5f3); }
.ft-mark .mark span:not(.inner) { font-weight: 400; background-image: linear-gradient(rgba(233, 239, 236, 0.6), rgba(233, 239, 236, 0.6)); }
.ft-mark.in-view .mark { opacity: 1; transform: translateY(0); }
.ft-legal {
  border-top: 1px solid var(--hair); padding-top: clamp(18px, 2.2vh, 26px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ft-legal p, .ft-legal nav { font-size: clamp(12px, 0.9vw, 13.5px); color: var(--faint); }
.ft-legal nav { display: flex; gap: 1.6em; }
.ft-legal a { color: var(--faint); text-decoration: none; transition: color 0.35s var(--ease); }
.ft-legal a:hover { color: var(--ivory); }

@media (max-width: 640px) {
  .footer { padding-left: 22px; padding-right: 22px; }
  .ft-cols { grid-template-columns: 1fr; gap: 36px; }
  .ft-mark { margin-top: 40px; margin-bottom: 32px; }
  .ft-legal { flex-direction: column; gap: 10px; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-mark .mark { opacity: 1; transform: none; transition: none; }
}
