/* Amada legal pages (legal-notice, privacy, terms, licenses): the same sky, ink and pink as the home page */
:root { --pink: #F5C9CA; --ink: #1A1214; --paper: #FFF6F6; --sky: #1d4fb8; --line: rgba(26,18,20,.14); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 80px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { background: var(--paper); color: var(--ink); }
body { font: 15px/1.75 "IBM Plex Mono", Consolas, monospace; }
img { display: block; }
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--pink); border: 3px solid var(--ink); min-height: 48px; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: var(--pink) var(--ink); } }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { background: var(--pink); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- top bar (same as the home page) */
.topnav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  height: 54px; padding: 0 16px; color: var(--paper); background: var(--ink); border-bottom: 3px solid var(--pink);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; flex: none; }
.brand:hover { background: none; }
.brand-logo {
  display: grid; place-items: center; width: 32px; height: 32px; background: var(--pink); color: var(--ink);
  border: 2px solid var(--paper); box-shadow: 3px 3px 0 var(--paper); font: 400 22px/1 "Leckerli One", cursive;
}
.brand-name { font: 400 27px/1 "Leckerli One", cursive; color: var(--pink); }
.topnav nav { margin-left: auto; }
.topnav ul { display: flex; list-style: none; }
.topnav nav a {
  display: block; padding: 6px 10px; font: 600 11px "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); text-decoration: none; border: 2px solid transparent;
}
.topnav nav a[aria-current] { color: var(--ink); background: var(--pink); }
.topnav nav a:hover { color: var(--ink); background: var(--pink); border-color: var(--paper); }
.topnav a:focus-visible, .topnav summary:focus-visible { outline-color: var(--pink); }
.nav-menu summary { display: none; }
@media (max-width: 860px) {
  .nav-menu summary {
    display: block; list-style: none; cursor: pointer; padding: 6px 12px; font: 600 11px "IBM Plex Mono", monospace; letter-spacing: .14em;
    color: var(--ink); background: var(--pink); border: 2px solid var(--paper); box-shadow: 3px 3px 0 var(--paper);
  }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu ul { display: none; }
  .nav-menu[open] ul {
    display: block; position: absolute; right: 12px; top: 58px; min-width: 240px; padding: 6px;
    background: var(--ink); border: 3px solid var(--pink); box-shadow: 6px 6px 0 var(--pink);
  }
  .nav-menu[open] a { padding: 10px 12px; font-size: 12px; }
}

/* ---------- the sky band: the hero's sky and clouds, a VHS label, the title */
.sky {
  position: relative; overflow: hidden; height: clamp(320px, 52vh, 520px); color: var(--paper);
  background: var(--sky) url(assets/sky_vhs.webp) center 30% / cover;
  border-bottom: 3px solid var(--ink);
}
.sky::before { /* the cloud sea, rising from the bottom */
  content: ""; position: absolute; left: 50%; bottom: -34%; width: max(100%, 900px); aspect-ratio: 3 / 4; translate: -50% 0;
  background: url(assets/clouds_seam.webp) center bottom / contain no-repeat; pointer-events: none;
}
.sky::after { /* each page has its own hour of the night: a different tint */
  content: ""; position: absolute; inset: 0; background: var(--tint, transparent); mix-blend-mode: multiply; pointer-events: none;
}
.sky-in { position: relative; z-index: 1; max-width: 1180px; height: 100%; margin: 0 auto; padding: 28px 16px 0; display: flex; flex-direction: column; }
.osd {
  align-self: flex-start; display: flex; gap: 14px; padding: 4px 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em;
  background: rgba(26,18,20,.55); text-shadow: 1px 0 rgba(255,0,90,.6), -1px 0 rgba(0,190,255,.6);
}
.osd .rec::before { content: "● "; color: #ff4d4d; animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: 0; } }
.page-title {
  margin-top: auto; font: 400 clamp(54px, 10vw, 128px)/1 "Leckerli One", cursive; color: var(--paper);
  text-shadow: 0 0 40px rgba(245,201,202,.6), 0 0 6px rgba(255,255,255,.35);
}
.page-sub { margin: 6px 0 clamp(28px, 6vh, 56px); font: clamp(26px, 3vw, 38px)/1.1 "Nanum Pen Script", cursive; text-shadow: 0 0 12px rgba(26,18,20,.35); }

/* ---------- meta strip under the sky */
.meta {
  display: flex; flex-wrap: wrap; gap: 0; max-width: 1180px; margin: 0 auto; padding: 0 16px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.meta span { padding: 10px 16px 10px 0; margin-right: 16px; border-right: 1px solid var(--line); }
.meta span:last-child { border-right: 0; }
.meta-wrap { background: var(--pink); border-bottom: 3px solid var(--ink); }

/* ---------- body: contents on the left, the text on the right */
.layout { max-width: 1180px; margin: 0 auto; padding: 48px 16px 80px; display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 78px; font-size: 12px; }
.toc h2 { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.toc ol { list-style: none; border-left: 3px solid var(--ink); }
.toc a { display: flex; gap: 10px; padding: 5px 0 5px 12px; text-decoration: none; line-height: 1.4; }
.toc a b { flex: none; font-weight: 600; opacity: .45; }
.toc a:hover, .toc a.on { background: var(--pink); }
.toc a.on b { opacity: 1; }
.toc .other { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.toc .other a { padding-left: 0; }
.toc .other a::before { content: "→"; }

article { min-width: 0; max-width: 760px; }
.short {
  position: relative; margin-bottom: 48px; padding: 22px 24px 20px; background: var(--ink); color: var(--paper);
  box-shadow: 10px 10px 0 var(--pink);
}
.short h2 { display: inline-block; margin-bottom: 12px; padding: 2px 8px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: var(--pink); }
.short ul { list-style: none; }
.short li { position: relative; padding-left: 22px; }
.short li + li { margin-top: 6px; }
.short li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); }
.short li.no::before { content: "✕"; }
.short a { color: var(--pink); }
.short a:hover { color: var(--ink); }

article section { padding: 34px 0 6px; border-top: 3px solid var(--ink); }
article section + section { margin-top: 26px; }
.num { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; opacity: .5; }
article h2.h { font: 400 clamp(32px, 4.2vw, 46px)/1.1 "Leckerli One", cursive; margin: 4px 0 14px; }
article h3 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 22px 0 6px; }
article p + p, article p + ul, article ul + p, article p + .card, article .card + p, article p + table, article table + p { margin-top: 12px; }
article ul { padding-left: 20px; }
article li + li { margin-top: 5px; }
article strong { font-weight: 600; background: linear-gradient(transparent 62%, var(--pink) 62%); }

/* facts in a framed card */
.card { margin: 14px 0; padding: 16px 18px; background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.card dt { font-weight: 600; }
/* an honest aside */
.honest { margin: 16px 0; padding: 12px 16px 12px 14px; border-left: 6px solid var(--pink); background: rgba(245,201,202,.28); font-size: 14px; }
.honest b { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; display: block; }

/* tables (who receives what) */
.tbl { width: 100%; overflow-x: auto; margin: 14px 0; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: #fff; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--pink); border-bottom: 3px solid var(--ink); }
tr:last-child td { border-bottom: 0; }
.yes { font-weight: 600; }
.no-cell { opacity: .55; }

.back { display: inline-block; margin-top: 44px; padding: 8px 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); background: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 var(--pink); transition: transform .15s ease, box-shadow .15s ease; }
.back:hover { background: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pink); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .toc { position: static; }
  .toc .other { display: none; }
}
@media (max-width: 560px) {
  .card dl { grid-template-columns: 1fr; }
  .card dd { margin-bottom: 8px; }
  .short { padding: 18px 16px; box-shadow: 6px 6px 0 var(--pink); }
}

/* ---------- footer: the same as the home page (the street at night), with the page name written big */
footer a:hover { background: none; }
.live { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: #ff4d4d; animation: rec 1.6s steps(2) infinite; }
.foot { position: relative; background: #000; color: #cfc6c8; overflow: hidden; }
.foot-img {
  display: block; width: 100%; height: clamp(260px, 46vw, 620px);
  object-fit: cover; object-position: center 40%;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 60%, transparent);
          mask-image: linear-gradient(transparent, #000 25%, #000 60%, transparent);
}
.foot-cols {
  max-width: 1180px; margin: -6vw auto 0; padding: 0 16px; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 3px solid var(--pink);
}
.foot-cols > div { padding: 20px 18px 26px 0; border-right: 1px solid rgba(245,201,202,.18); }
.foot-cols > div + div { padding-left: 18px; }
.foot-cols > div:last-child { border-right: 0; }
.foot h4 { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--pink); margin-bottom: 10px; }
.foot p { font-size: 13px; line-height: 1.7; }
.foot a { color: var(--paper); text-underline-offset: 3px; }
.foot a:hover { color: var(--pink); }
.live { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: #ff4d4d; animation: rec 1.6s steps(2) infinite; }
.foot-line {
  max-width: 1180px; margin: 0 auto; padding: 14px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  font-size: 11px; letter-spacing: .08em; opacity: .55; border-top: 1px solid rgba(245,201,202,.18);
}
.foot-name {
  font-family: "Leckerli One", cursive; font-size: 24vw; line-height: 1.2; text-align: center; white-space: nowrap;
  color: var(--pink); padding: 1vw 0 2vw; user-select: none;
  text-shadow: .6vw 0 rgba(255,0,90,.35), -.6vw 0 rgba(0,190,255,.3);
}
@media (max-width: 760px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:nth-child(2) { border-right: 0; }
  .foot-cols > div:nth-child(3) { padding-left: 0; border-top: 1px solid rgba(245,201,202,.18); }
  .foot-cols > div:nth-child(4) { border-top: 1px solid rgba(245,201,202,.18); }
}
/* contact / legal / credits: three separate blocks under the model facts */
.foot-meta {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 0 44px 0 16px;
  display: grid; grid-template-columns: 1.1fr .9fr 1.6fr; border-top: 1px solid rgba(245,201,202,.18);
}
.fm-block { padding: 22px 18px 26px 0; }
.fm-block + .fm-block { padding-left: 18px; border-left: 1px solid rgba(245,201,202,.18); }
.fm-mail {
  display: inline-block; margin-bottom: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--ink) !important; background: var(--pink); border: 2px solid var(--pink); box-shadow: 4px 4px 0 var(--paper);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fm-mail:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--paper); }
.foot .fm-block p { font-size: 12px; opacity: .7; }
.fm-links { list-style: none; }
.fm-links li + li { margin-top: 4px; }
.fm-links a { font-size: 13px; text-decoration: none; }
.fm-links a::before { content: "→ "; color: var(--pink); }
.fm-links a:hover { text-decoration: underline; }
.fm-credits { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; font-size: 12px; line-height: 1.6; }
.fm-credits dt { color: var(--pink); }
.fm-credits dd { opacity: .8; }
.foot-copy {
  padding: 14px 16px 18px; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); background: var(--pink);
}
@media (max-width: 860px) {
  .foot-meta { grid-template-columns: 1fr 1fr; padding-right: 16px; }
  .fm-block:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid rgba(245,201,202,.18); }
}
@media (max-width: 520px) {
  .foot-meta { grid-template-columns: 1fr; }
  .fm-block + .fm-block { padding-left: 0; border-left: 0; border-top: 1px solid rgba(245,201,202,.18); }
  .fm-credits { grid-template-columns: 1fr; }
  .fm-credits dd { margin-bottom: 6px; }
}

.foot-name { font-size: var(--fs, 24vw); }

/* ---------- VHS grain over everything, like the home page */
.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .1; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .5s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0,0) } 25% { transform: translate(-7%,4%) } 50% { transform: translate(5%,-6%) } 75% { transform: translate(-3%,-2%) } }
@media (prefers-reduced-motion: reduce) { .grain, .osd .rec::before { animation: none; } }
@media print { .topnav, .grain, .toc, footer, .sky::before { display: none; } .sky { height: auto; background: none; color: var(--ink); } .page-title, .page-sub { color: var(--ink); text-shadow: none; } }
