/* Impulsee public pages — privacy policy and account deletion.
   Same look as the app: warm amber, ink outlines, and buttons that sit on
   their own coloured layer (see .raised below). */

:root {
  --bg: #fffbec;
  --card: #ffffff;
  --primary: #ffc629;
  --ink: #1e1b14;
  --ink-soft: #4a4436;
  --rule: #e9dfbf;
  --border: 3px;
  /* The app's loud second colour (its `danger` role). */
  --orange: #ff8a00;
}

/* ---------- Raised: the app's button build ----------
   Same construction as the app's Raised component (and SEND A SHOUT): the
   face sits on a second, coloured, outlined layer offset down-right, a
   shadow that's a real object, rather than on a flat ink shadow. Drawn
   here as two hard box-shadows: the fill (pulled in by the border width)
   over an ink outline the size of the face.

   Pressing slides the face onto that layer — 110ms down, 170ms back up,
   like the app. `transform`, not `translate`, so on a tilted element the
   slide follows the tilt and lands exactly on the layer.

   Per element: --lift (how far it sits up), --back (the layer's colour),
   --b (its outline, matching the face's border). Amber under most faces,
   orange under amber ones, as in the app.

   Pages with pressable things carry `ontouchstart=""` on <body>: iOS Safari
   won't apply :active on a tap without a touch listener somewhere. */
.raised,
header.top img,
.email {
  --lift: 5px;
  --back: var(--primary);
  --b: var(--border);
  box-shadow:
    var(--lift) var(--lift) 0 calc(var(--b) * -1) var(--back),
    var(--lift) var(--lift) 0 0 var(--ink);
  transition:
    transform .17s cubic-bezier(.25, .46, .45, .94),
    box-shadow .17s cubic-bezier(.25, .46, .45, .94);
}
.press:active,
.email:active {
  transform: translate(var(--lift), var(--lift));
  box-shadow:
    0 0 0 calc(var(--b) * -1) var(--back),
    0 0 0 0 var(--ink);
  transition-duration: .11s;
}
@media (prefers-reduced-motion: reduce) {
  .raised, header.top img, .email { transition: none; }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header.top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

header.top img {
  width: 56px;
  height: 56px;
  border: var(--border) solid var(--ink);
  border-radius: 14px;
  --lift: 4px;
  --back: var(--orange);
}

header.top a {
  color: var(--ink);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.5px;
  text-decoration: none;
}

h1 {
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.1;
  letter-spacing: -1.2px;
  font-weight: 900;
  margin: 0 0 8px;
}

.updated {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 24px;
}

h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 36px 0 8px;
}

h3 {
  font-size: 17px;
  font-weight: 900;
  margin: 20px 0 4px;
}

p, li { color: var(--ink); }

ul { padding-left: 22px; }
li { margin: 4px 0; }

a { color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; }

.card {
  background: var(--card);
  border: var(--border) solid var(--ink);
  border-radius: 18px;
  /* Flat, like the app's section cards: just the outline. */
  padding: 20px 20px 8px;
  margin: 20px 0;
}

.card.primary { background: var(--primary); }

.card h2 { margin-top: 0; }

ol.steps { padding-left: 22px; }
ol.steps li { margin: 8px 0; }

.email {
  display: inline-block;
  background: var(--primary);
  border: var(--border) solid var(--ink);
  border-radius: 12px;
  --lift: 4px;
  --back: var(--orange);
  padding: 10px 16px;
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
  word-break: break-all;
  margin: 4px 0 16px;
}

.table-scroll { overflow-x: auto; margin: 12px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 2px solid var(--rule);
}

th { font-weight: 900; border-bottom: var(--border) solid var(--ink); }

/* Phones: each provider becomes its own small card instead of a table that
   scrolls sideways. */
@media (max-width: 600px) {
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr {
    background: var(--card);
    border: 2px solid var(--ink);
    border-radius: 12px;
    padding: 4px 12px;
    margin: 0 0 12px;
  }
  td { border-bottom: 0; padding: 6px 0; }
  td + td { border-top: 2px solid var(--rule); }
  td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  td[data-label="Provider"]::before { display: none; }
}

kbd {
  font: inherit;
  font-weight: 900;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0 6px;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: var(--border) solid var(--ink);
  font-size: 14px;
  color: var(--ink-soft);
}

footer a { margin-right: 16px; }
