/* The legal website (docs/business-and-legal.md): plain HTML and this file, no scripts, no cookies, no external fonts. */

:root {
  --bg: #eef1fb;
  --surface: #ffffff;
  --surface2: #e3e8f7;
  --ink: #1e2547;
  --muted: #4f5880;
  --line: #cbd3ee;
  --accent: #f5b83d;
  --link: #2f4bb5;
  --notice-bg: #fdecc8;
  --notice-ink: #6b4a00;
  --todo-bg: #fff3a8;
  --todo-ink: #5a4700;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121833;
    --surface: #1a2246;
    --surface2: #26305e;
    --ink: #f3e9d2;
    --muted: #c9bfa8;
    --line: #34407a;
    --link: #f5b83d;
    --notice-bg: #4a3a14;
    --notice-ink: #fde7b0;
    --todo-bg: #5c4d00;
    --todo-ink: #fff3a8;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

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

.site-header,
.site-footer,
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 12px;
}

.brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

main {
  padding-bottom: 32px;
}

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

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 32px 0 8px;
}

h3 {
  font-size: 18px;
  margin: 22px 0 6px;
}

p,
ul,
ol,
address {
  margin: 0 0 12px;
}

address {
  font-style: normal;
}

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

li + li {
  margin-top: 4px;
}

.stand {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
}

/* Draft banner: removed when the texts are final (server/Resources/Website/README.md). */
.draft {
  background: var(--notice-bg);
  color: var(--notice-ink);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 15px;
}

/* Places the owner still has to fill in (search for class="todo"). */
.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

.note {
  background: var(--surface2);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 8px 0 16px;
}

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

th {
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
  margin: 20px 0 0;
}

.links li + li {
  margin-top: 0;
}

.links a {
  display: block;
  background: var(--surface2);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: break-word;
  hyphens: auto;
}

.links a:hover {
  outline: 2px solid var(--accent);
}

.site-footer {
  padding-top: 8px;
  padding-bottom: 32px;
  font-size: 15px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

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

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

  .card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  h1 {
    font-size: 25px;
  }
}
