/* Tenvik legal pages (privacy-policy/, terms-and-conditions/,
   delete-account/): a plain black-and-white document style, separate from
   the app's pink theme and from the review page (style.css). */

:root {
  --bg: #ffffff;
  --surface: #f6f6f6;
  --text: #0a0a0a;
  --muted: #5c5c5c;
  --line: #e2e2e2;
  --strong-line: #0a0a0a;
  --link: #0a0a0a;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #111111;
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --line: #262626;
    --strong-line: #f5f5f5;
    --link: #ffffff;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--strong-line);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--text);
  color: var(--bg);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand b {
  font: 700 18px/1 var(--sans);
  letter-spacing: 0.16em;
}

.brand span {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--strong-line);
}

/* ------------------------------------------------------------ layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 64px;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
    padding-top: 56px;
  }
}

/* -------------------------------------------------- table of contents */

.toc {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.toc summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "+";
  float: right;
  font-weight: 400;
}

.toc[open] summary::after {
  content: "−";
}

.toc ol {
  margin: 0;
  padding: 0 16px 14px 16px;
  list-style: none;
  counter-reset: toc;
}

.toc > ol:first-child {
  padding-top: 14px;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  min-width: 22px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  color: var(--text);
}

@media (min-width: 900px) {
  .toc {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
  }

  .toc summary {
    pointer-events: none;
    padding-top: 0;
  }

  .toc summary::after,
  .toc[open] summary::after {
    content: none;
  }
}

/* ---------------------------------------------------------- document */

.doc {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc h1 {
  margin: 0;
  font: 600 clamp(34px, 6vw, 48px)/1.1 var(--serif);
  letter-spacing: -0.01em;
}

.doc .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 16px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.doc .meta li {
  margin: 0;
}

.doc .lead {
  margin: 28px 0 0;
  font: 400 19px/1.6 var(--serif);
}

.summary {
  margin: 32px 0 0;
  padding: 22px 24px;
  background: var(--surface);
  border-left: 3px solid var(--strong-line);
}

.summary h2 {
  margin: 0 0 10px;
  font: 600 13px/1.4 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary ul {
  margin: 0;
  padding-left: 18px;
}

.summary li + li {
  margin-top: 6px;
}

.doc section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.doc section h2 {
  display: flex;
  gap: 14px;
  margin: 0 0 16px;
  font: 600 24px/1.3 var(--serif);
}

.doc section h2 .num {
  min-width: 30px;
  color: var(--muted);
  font: 500 15px/2.1 var(--sans);
  font-variant-numeric: tabular-nums;
}

.doc h3 {
  margin: 24px 0 8px;
  font: 600 16px/1.5 var(--sans);
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 14px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 8px;
}

.doc strong {
  font-weight: 600;
}

.note {
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* Two columns that stack on a phone. */
.table {
  width: 100%;
  margin: 8px 0 14px;
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  border-bottom: 1px solid var(--strong-line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table tbody th {
  width: 36%;
  font-weight: 600;
}

@media (max-width: 560px) {
  .table thead {
    display: none;
  }

  .table tr,
  .table th,
  .table td {
    display: block;
    width: 100%;
  }

  .table tbody th {
    width: 100%;
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .table td {
    padding-top: 0;
  }
}

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

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.business-contact {
  max-width: 390px;
  margin: 0;
  font-style: normal;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .brand span,
  .site-nav .long {
    display: none;
  }

  .site-header .wrap {
    padding-right: 8px;
  }

  .site-nav a {
    padding: 8px 8px;
  }
}

@media print {
  .site-header,
  .toc,
  .skip {
    display: none;
  }

  .layout {
    display: block;
    padding: 0;
  }

  body {
    font-size: 11pt;
  }

  .doc section {
    break-inside: avoid-page;
  }
}
