/* Leaday's public legal pages. Same colors and font as the platform (src/index.css). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --background: #ffffff;
  --foreground: hsl(222 47% 11%);
  --muted: hsl(220 14% 96%);
  --muted-foreground: hsl(220 9% 40%);
  --border: hsl(220 13% 91%);
  --primary: hsl(217 91% 50%);
  color-scheme: light;
}
:root.dark {
  --background: hsl(222 47% 5%);
  --foreground: hsl(210 40% 98%);
  --muted: hsl(222 47% 12%);
  --muted-foreground: hsl(215 20% 70%);
  --border: hsl(222 47% 15%);
  --primary: hsl(217 91% 65%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* One title in a 6rem head, buttons right */
.head {
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
}
.head-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.head-left a { display: flex; }
.head img { height: 28px; width: auto; }
.head h1 { font-size: 1.125rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-buttons { display: flex; gap: 0.5rem; flex-shrink: 0; }
.head button {
  font: inherit;
  font-size: 0.875rem;
  height: 2.25rem;
  min-width: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.head button:hover { background: var(--muted); }
.head button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.head button svg { width: 1rem; height: 1rem; }
.logo-dark { display: none; }
:root.dark .logo-dark { display: block; }
:root.dark .logo-light { display: none; }

main { padding: 1rem; }
article { max-width: 46rem; margin: 0 auto; }
article[hidden] { display: none; }
.updated { color: var(--muted-foreground); font-size: 0.875rem; margin: 0.5rem 0 1.5rem; }
h2 { font-size: 1.25rem; font-weight: 600; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.25rem; }
p, li { color: var(--foreground); }
ul { padding-left: 1.25rem; }
li { margin: 0.25rem 0; }
a { color: var(--primary); text-underline-offset: 2px; }
.box {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.box p { margin: 0.25rem 0; }
footer {
  max-width: 46rem;
  margin: 3rem auto 0;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
footer a { color: var(--muted-foreground); }

@media (min-width: 768px) {
  .head { padding: 0 2rem; }
  .head h1 { font-size: 1.25rem; }
  main { padding: 2rem; }
}
