/* Nexyn website: privacy policy and account deletion pages. */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #5b6573;
  --border: #e2e6eb;
  /* Brand: lime N on ink (app icon). Lime is too light for text on white, so light mode links use a dark olive. */
  --ink: #14121a;
  --lime: #c8ff2e;
  --accent: #4a6b00;
  --accent-soft: #f1fbd9;
  --warn-bg: #fff6e5;
  --warn-border: #f3d18a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 16px rgba(16, 24, 40, 0.04);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216;
    --surface: #171b21;
    --text: #e7eaee;
    --muted: #9aa4b2;
    --border: #2a3039;
    --accent: #c8ff2e;
    --accent-soft: #232b12;
    --warn-bg: #2a2212;
    --warn-border: #6b5520;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1216;
  --surface: #171b21;
  --text: #e7eaee;
  --muted: #9aa4b2;
  --border: #2a3039;
  --accent: #c8ff2e;
  --accent-soft: #232b12;
  --warn-bg: #2a2212;
  --warn-border: #6b5520;
  --shadow: none;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  display: block;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

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

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .page.with-toc {
    grid-template-columns: 220px 1fr;
  }
}

.toc {
  display: none;
}

@media (min-width: 900px) {
  .toc {
    display: block;
    position: sticky;
    top: 80px;
    align-self: start;
    font-size: 0.9rem;
  }

  .toc p {
    margin: 0 0 8px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
  }

  .toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--border);
  }

  .toc a {
    display: block;
    padding: 4px 12px;
    margin-left: -1px;
    color: var(--muted);
    text-decoration: none;
    border-left: 2px solid transparent;
  }

  .toc a:hover,
  .toc a.active {
    color: var(--text);
    border-left-color: var(--accent);
  }
}

article {
  min-width: 0;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  scroll-margin-top: 80px;
}

h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

p,
li {
  max-width: 70ch;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 24px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

/* ---------------------------------------------------------------- components */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card + .card {
  margin-top: 16px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.link-card h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.link-card p {
  margin: 0;
  color: var(--muted);
}

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
}

.highlight {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
}

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

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 16px 48px;
  min-height: 36px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.path {
  font-weight: 600;
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 12px 0;
}

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

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

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

th {
  font-weight: 600;
  background: var(--accent-soft);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.contact code {
  font-size: 0.95rem;
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 6px;
  word-break: break-all;
}

.btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--accent);
}

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

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

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

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

@media (max-width: 560px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .theme-toggle,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
