/* TWO ENDS — legal pages (privacy, data deletion). Brand: navy, warm white, coral; Outfit + Fragment Mono. */
:root {
  --navy: #061f3f;
  --navy-deep: #04162e;
  --ink: #f5f5f0;
  --ink-soft: rgba(245, 245, 240, 0.82);
  --ink-mute: rgba(245, 245, 240, 0.58);
  --line: rgba(245, 245, 240, 0.14);
  --coral: #ff4d5a;
  --coral-soft: rgba(255, 77, 90, 0.14);
  --display: "Outfit", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
  --gutter: clamp(1rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--navy);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 45% at 85% -5%, rgba(255, 77, 90, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(245, 245, 240, 0.07), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  background-attachment: fixed;
  color: var(--ink-soft);
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover,
a:focus-visible {
  color: var(--coral);
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 2.75rem;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover img {
  transform: rotate(-12deg) scale(1.06);
}

.brand span {
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 0.95rem;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--ink-mute);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(3rem, 9vw, 6.5rem) var(--gutter) clamp(2rem, 5vw, 3rem);
  max-width: 78rem;
  margin: 0 auto;
  width: 100%;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 1.25rem;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.meta strong {
  color: var(--ink);
  font-weight: 400;
}

/* interlocking-fingers divider, from the TWO ENDS hands */
.fingers {
  height: 22px;
  margin: 2.5rem 0 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='22'><rect x='0' y='1' width='30' height='9' rx='4.5' fill='%23ff4d5a'/><rect x='18' y='12' width='30' height='9' rx='4.5' fill='%23f5f5f0'/></svg>") repeat-x left center / 48px 22px;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
}

/* ---------- body layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  max-width: 78rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 9vw, 7rem);
  flex: 1;
}

@media (min-width: 60rem) {
  .layout {
    grid-template-columns: 15rem minmax(0, 46rem);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.toc {
  font-family: var(--mono);
  font-size: 0.8rem;
}

.toc p {
  margin: 0 0 0.75rem;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.toc a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  padding: 0.35rem 0;
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.toc a span {
  color: var(--coral);
}

.toc a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

@media (min-width: 60rem) {
  .toc {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

@media (max-width: 59.99rem) {
  .toc ol {
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  }
}

/* ---------- content ---------- */
.content section {
  padding: 2.25rem 0 0.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}

.content section:first-child {
  border-top: 0;
  padding-top: 0;
}

.content h2 {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  line-height: 1.25;
}

.content h2 .num {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--coral);
  letter-spacing: 0.08em;
  flex: none;
}

.content p,
.content ul,
.content ol {
  margin: 0 0 1.1rem;
  max-width: 68ch;
}

.content ul {
  padding-left: 1.2rem;
}

.content li {
  margin: 0.35rem 0;
}

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

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

.card {
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 0 10px 10px 0;
  background: rgba(245, 245, 240, 0.035);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 34rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: rgba(245, 245, 240, 0.04);
}

tr:last-child td {
  border-bottom: 0;
}

/* numbered steps (data deletion) */
.steps {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 1.1rem 1.25rem 1.1rem 4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(245, 245, 240, 0.035);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  top: 1.05rem;
  font-family: var(--mono);
  color: var(--coral);
  font-size: 0.9rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.25rem 0 1.25rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta:hover,
.cta:focus-visible {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(255, 77, 90, 0.7);
}

/* ---------- footer ---------- */
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem var(--gutter) 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--ink-mute);
  text-align: center;
}

.legal-footer p {
  margin: 0;
}

.legal-footer a {
  color: var(--ink-mute);
}

.legal-footer .nb {
  white-space: nowrap;
}

.legal-footer a:hover {
  color: var(--coral);
}

/* ---------- motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    animation: none;
  }
  .brand img,
  .cta {
    transition: none;
  }
}

@media (max-width: 30rem) {
  .site-header {
    flex-wrap: wrap;
  }
  .site-nav {
    gap: 0.9rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }
  body::before,
  .fingers,
  .toc,
  .site-nav {
    display: none;
  }
  .hero h1,
  .content h2,
  .content strong,
  .card {
    color: #111;
  }
}
