/* Remark — shared stylesheet for the public legal pages (Terms, Privacy, Delete account). */

:root {
  color-scheme: light dark;

  /* Values mirror the app's RemarkColors tokens. */
  --accent: #1A7A6D;          /* fills: wordmark dot, step numbers */
  --link: #1A7A6D;            /* accent used as text */
  --accent-surface: #EEF7F6;
  --accent-border: rgba(26, 122, 109, 0.19);
  --background: #F9FAFB;
  --surface: #FFFFFF;
  --text: #111318;
  --text-secondary: #4B4F58;
  --border: #E2E5E9;
  --warning-surface: #FEF4E2;
  --warning-border: rgba(224, 168, 46, 0.45);

  --reading-width: 720px;
  --gutter: 16px;
  --radius: 14px;
  --radius-small: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #1A7A6D;
    /* #1A7A6D on #0E1011 is ~3.7:1 — too low for body-size link text, so links get a lighter teal. */
    --link: #4DB6A6;
    --accent-surface: #1A2D2A;
    --accent-border: rgba(26, 122, 109, 0.45);
    --background: #0E1011;
    --surface: #161819;
    --text: #EAEBEE;
    --text-secondary: #A0A3AA;
    --border: #282B2E;
    --warning-surface: #231F14;
    --warning-border: rgba(224, 168, 46, 0.35);
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: calc(var(--reading-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.header-company {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Main content */

main {
  padding: 40px 0 56px;
}

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

h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.effective-date {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 15px;
}

h2 {
  margin: 44px 0 12px;
  padding-top: 8px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  scroll-margin-top: 16px;
}

h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

li::marker {
  color: var(--text-secondary);
}

strong {
  font-weight: 600;
}

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

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

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 4px;
}

.muted {
  color: var(--text-secondary);
}

/* Callouts */

.summary,
.callout,
.warning {
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: var(--radius);
}

.summary {
  background: var(--accent-surface);
  border: 1px solid var(--accent-border);
}

.summary h2 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 18px;
}

.summary ul {
  margin-bottom: 0;
}

.summary li:last-child {
  margin-bottom: 0;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
}

.warning {
  background: var(--warning-surface);
  border: 1px solid var(--warning-border);
}

.callout > :last-child,
.warning > :last-child {
  margin-bottom: 0;
}

/* Table of contents */

.toc {
  margin: 0 0 8px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc-title {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin-bottom: 4px;
  break-inside: avoid;
  font-size: 15px;
}

/* Steps (delete-account page) */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.steps li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 44px;
  min-height: 30px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
}

/* Data tables */

.table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

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

th {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

address {
  font-style: normal;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-secondary);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--link);
  text-decoration: underline;
}

.footer-links a[aria-current="page"] {
  color: var(--link);
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}

/* Small screens */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 28px 0 44px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    margin-top: 36px;
    font-size: 21px;
  }

  .header-company {
    display: none;
  }

  .toc ol {
    columns: 1;
  }

  th,
  td {
    padding: 10px;
  }

  .summary,
  .callout,
  .warning,
  .toc {
    padding: 16px 18px;
  }
}

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

  body {
    background: #FFFFFF;
    color: #000000;
  }
}
