/* Shared layout for the static legal pages. No JavaScript and no third-party requests.
   The site menu mirrors the start page (src/App.vue) and uses the self-hosted Inter from /fonts/. */
:root {
  --primary: #1a365d;
  --secondary: #0f766e;
  --text: #1e293b;
  --muted: #526073;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --open-bg: #fef3c7;
  --open-text: #713f12;
  --open-border: #d97706;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a { color: var(--secondary); }

/* Site menu, same labels, order and breakpoints as the start page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  font-family: 'Inter', sans-serif;
}

.logo, .logo img { display: block; }

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); }

.btn-nav {
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--secondary);
  border-radius: 8px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-nav:hover { background: var(--primary); border-color: var(--primary); }

/* The narrow menu opens with <details>, so it works without JavaScript. */
.menu { display: none; }

.menu summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  list-style: none;
}

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

.menu summary span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transform-origin: center;
}

.menu[open] summary span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.menu nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.menu nav a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.menu nav a:last-child { border-bottom: none; }
.menu nav a:hover, .menu nav a[aria-current="page"] { color: var(--secondary); }
.menu nav .menu-cta { color: var(--secondary); font-weight: 600; }

@media (max-width: 1279px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; margin-right: 1rem; }
  .menu { display: block; }
}

@media (max-width: 968px) {
  .site-header { padding: 1rem 1.5rem; }
  .btn-nav { display: none; }
}

.site-footer {
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.bar {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.bar nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.bar nav a { color: var(--muted); font-size: 0.95rem; }

main { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 0; }

h1 { color: var(--primary); font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.5rem; overflow-wrap: anywhere; hyphens: auto; }
h2 {
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 6rem; /* clears the sticky menu, for links such as /privacy/#cookies */
}

.meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.5rem; }

.draft-banner {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--open-border);
  background: var(--open-bg);
  color: var(--open-text);
}

.open {
  display: block;
  margin: 0.75rem 0;
  padding: 0.6rem 0.8rem;
  border-left: 4px solid var(--open-border);
  background: var(--open-bg);
  color: var(--open-text);
  font-size: 0.95rem;
}

address { font-style: normal; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.55rem 0.7rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--bg-soft); color: var(--primary); }
code { font-size: 0.9em; overflow-wrap: anywhere; }

ol.clauses { list-style: none; padding: 0; margin: 0; }
ol.clauses > li { margin: 0 0 0.85rem; }

@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
}

@media print {
  .site-header { position: static; }
  .nav-links, .btn-nav, .menu, .site-footer nav { display: none; }
  a { color: inherit; }
}
