/* dragdone — shared legal pages stylesheet */
:root {
  --surface-base: #ffffff;
  --surface-alt: #fbfbfb;
  --surface-bg: #f3f3f4;
  --surface-hover: #ebedef;
  --ink-primary: #060607;
  --ink-muted: #4e5058;
  --ink-subtle: #80848e;
  --line-subtle: #e0e1e5;
  --brand-blue: #1944f1;
  --brand-blue-dark: #0c32ca;
  --brand-blue-light: #e9eeff;
  --font-display: 'Geist', 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-primary);
  background: var(--surface-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-subtle);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  text-decoration: none;
}
.nav-back {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--ink-primary); }

/* ── Layout ── */
main {
  flex: 1;
  padding: 64px 0 120px;
}
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Document header ── */
.doc-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-subtle);
}
.doc-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.doc-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.doc-subtitle {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.doc-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-subtle);
}
.doc-meta strong {
  color: var(--ink-muted);
  font-weight: 500;
}

/* ── Typography ── */
main h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  padding-top: 8px;
  scroll-margin-top: 88px;
}
main h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 32px 0 12px;
  scroll-margin-top: 88px;
}
main h2:first-of-type { margin-top: 0; }

main p {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
main p strong { color: var(--ink-primary); font-weight: 500; }

main ul, main ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
main li {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}
main li::marker { color: var(--ink-subtle); }

main a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.15s;
}
main a:hover {
  color: var(--brand-blue-dark);
  text-decoration: underline;
}

/* ── Tables ── */
.doc-table {
  width: 100%;
  margin: 16px 0 24px;
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-alt);
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 0;
}
.doc-table th,
.doc-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-subtle);
}
.doc-table tr:last-child th,
.doc-table tr:last-child td {
  border-bottom: none;
}
.doc-table th {
  font-weight: 500;
  color: var(--ink-primary);
  width: 40%;
  background: var(--surface-bg);
}
.doc-table td { color: var(--ink-muted); }

/* ── Info callout ── */
.doc-callout {
  background: var(--brand-blue-light);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--brand-blue-dark);
}
.doc-callout p { color: var(--brand-blue-dark); margin-bottom: 0; }
.doc-callout p + p { margin-top: 12px; }
.doc-callout strong { color: var(--brand-blue-dark); font-weight: 500; }

/* ── Table of contents (ÁSZF) ── */
.doc-toc {
  background: var(--surface-alt);
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 0 0 48px;
}
.doc-toc summary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-muted);
  transition: transform 0.2s;
}
.doc-toc[open] summary::after { transform: rotate(45deg); }
.doc-toc ol {
  list-style: none;
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  counter-reset: toc;
}
.doc-toc li {
  font-size: 14px;
  margin: 0;
  padding: 4px 0;
  counter-increment: toc;
  color: var(--ink-muted);
}
.doc-toc li::before {
  content: counter(toc) ". ";
  color: var(--ink-subtle);
}
.doc-toc li a {
  color: inherit;
  display: inline;
}
.doc-toc li a:hover { color: var(--brand-blue); text-decoration: none; }

/* ── Footer ── */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--line-subtle);
  font-size: 13px;
  color: var(--ink-subtle);
}
.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner a { color: var(--ink-subtle); text-decoration: none; }
.footer-inner a:hover { color: var(--ink-primary); }
.footer-links {
  display: flex;
  gap: 20px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-inner { padding: 0 16px; height: 56px; }
  .logo { font-size: 16px; }
  main { padding: 40px 0 80px; }
  .container { padding: 0 16px; }
  .doc-header { margin-bottom: 32px; padding-bottom: 24px; }
  main h2 { font-size: 20px; margin: 36px 0 12px; scroll-margin-top: 72px; }
  main h3 { font-size: 16px; margin: 24px 0 10px; scroll-margin-top: 72px; }
  main p, main li { font-size: 15px; }
  .doc-toc ol { grid-template-columns: 1fr; }
  .doc-table { font-size: 13px; }
  .doc-table th, .doc-table td { padding: 10px 12px; }
  .doc-table th { width: 45%; }
  .footer-inner { padding: 0 16px; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
