/* ==========================================================================
   fudidate — server-rendered pages (shared date, legal, 404)
   Standalone: loaded after tokens.css only, no landing CSS required.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 36rem at 85% -10%, rgba(160, 31, 122, 0.28), transparent 60%),
    radial-gradient(48rem 30rem at -10% 20%, rgba(255, 8, 62, 0.14), transparent 60%),
    var(--ink-950);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }

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

.page-shell {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 20px; height: 20px; flex: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-300);
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral-500);
}

/* ---------------------------------------------------------------- header */

.page-head { padding-block: 1.25rem; }

.page-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { display: inline-flex; color: #fff; text-decoration: none; }
.logo__mark { display: block; height: 22px; width: auto; }

.page-head__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}

.page-head__link:hover { color: var(--coral-300); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--grad-coral);
  color: #fff;
  box-shadow: var(--glow-coral);
}

.btn--primary:hover { background: var(--grad-coral-hover); }

.btn--ghost {
  background: var(--surface-2);
  color: #fff;
  border: 1px solid var(--line-2);
}

.btn--ghost:hover { background: var(--surface-3); border-color: var(--line-3); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ----------------------------------------------------------- shared date */

.share { padding-block: clamp(1rem, 0.5rem + 3vw, 3rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }

.share-card {
  max-width: 460px;
  margin-inline: auto;
  padding: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--ink-900);
  box-shadow: var(--sh-lift);
}

.host {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.host__photo {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 91, 105, 0.7);
  background: var(--ink-800);
}

.host__photo--empty {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--coral-300);
}

.host__line { color: var(--text-2); font-size: 0.95rem; line-height: 1.4; }
.host__line strong { color: #fff; font-weight: 600; }

.share-card__title {
  font-size: var(--step-3);
  overflow-wrap: anywhere;
}

.share-card__lede { margin-top: 0.9rem; color: var(--text-2); }

.details {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line-1);
}

.detail__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 91, 105, 0.12);
  color: var(--coral-400);
}

.detail__text { display: grid; min-width: 0; }

.detail__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
}

.detail__value {
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}

.detail__extra { font-size: 0.85rem; color: var(--text-3); }

.share-card__actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.share-card__note {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-3);
  text-align: center;
}

/* ------------------------------------------------------------------ legal */

.draft-banner {
  padding: 0.75rem var(--gutter);
  background: var(--grad-coral);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.legal { padding-block: clamp(1.5rem, 1rem + 3vw, 3.5rem) clamp(3rem, 2rem + 4vw, 5rem); }

.legal__head h1 { font-size: var(--step-4); }

.legal__meta { margin-top: 0.75rem; color: var(--text-3); font-size: 0.9rem; }

.legal__toc {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-1);
  background: var(--surface-1);
}

.legal__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.legal__toc a { color: var(--text-2); text-decoration: none; }
.legal__toc a:hover { color: var(--coral-300); }

.legal__section { margin-top: 2.5rem; scroll-margin-top: 1.5rem; }

.legal__section h2 { font-size: var(--step-2); margin-bottom: 0.9rem; }

.legal__section p,
.legal__section li { color: var(--text-2); }

.legal__section p + p { margin-top: 0.8rem; }

.legal__section ul { margin: 0.6rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }

.legal__section strong { color: #fff; font-weight: 600; }

.legal__section a { color: var(--coral-300); text-underline-offset: 3px; }

.placeholder {
  padding: 0 0.3rem;
  border-radius: 4px;
  background: rgba(255, 91, 105, 0.16);
  color: var(--coral-300);
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line-1);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.5;
}

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

th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
  background: var(--surface-1);
}

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

/* phones: each row becomes a small card instead of a sideways-scrolling table */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  table.stack { min-width: 0; }
  table.stack thead { display: none; }

  table.stack tr {
    display: block;
    margin-bottom: 0.6rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line-1);
    border-radius: var(--r-md);
    background: var(--surface-1);
  }

  table.stack td { display: block; padding: 0; border: 0; }
  table.stack td + td { margin-top: 0.4rem; }
  table.stack td:first-child { color: #fff; }
  .stack--providers td:first-child { font-weight: 600; }

  table.stack td:nth-child(3) { font-size: 0.82rem; color: var(--text-3); }
  table.stack td:nth-child(3)::before { font-weight: 600; color: var(--text-4); }
  .stack--basis td:nth-child(3)::before { content: "Legal basis: "; }
  .stack--providers td:nth-child(3)::before { content: "Data: "; }
}

/* ---------------------------------------------------------------- footer */

.page-foot {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-1);
  font-size: 0.82rem;
  color: var(--text-4);
}

.page-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.page-foot__nav { display: flex; gap: 1.25rem; }
.page-foot__nav a { text-decoration: none; color: var(--text-3); }
.page-foot__nav a:hover { color: var(--text-1); }
