/* Shared styles for the Cinelang legal and support pages. Colors and fonts match index.html. */

:root {
  color-scheme: light;

  --cream: #f7f1e1;
  --paper: #fffbf1;
  --ink: #2b1510;
  --ink-2: #5b4137;
  --ink-3: #8a7268;
  --sky: #3f6f88;
  --sky-3: #dceaf1;
  --beak: #fec048;

  --display: "Fredoka", "Zen Maru Gothic", "Nunito", system-ui, sans-serif;
  --body: "Nunito", "Zen Maru Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sky);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 2.5px var(--ink);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-weight: 700;
}

.legal-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--ink);
}

.legal-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -0.45em 0 var(--beak);
}

/* ---------- Document ---------- */

.doc {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(22px, 5vw, 56px);
  margin-bottom: 48px;
}

.doc h1,
.doc h2 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 0 0 14px;
}

.doc h2 {
  font-size: clamp(1.3rem, 3.6vw, 1.6rem);
  margin: 2.2em 0 0.6em;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 1em;
}

.doc ul,
.doc ol {
  padding-left: 1.4em;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc li::marker {
  color: var(--ink-3);
}

.doc .effective {
  display: inline-block;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 14px;
  font-size: 0.95rem;
  margin-bottom: 1.4em;
}

.doc .short-version {
  background: var(--sky-3);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 18px 22px 4px;
  margin: 0 0 1.4em;
}

.doc .short-version > p:first-child {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

/* Tables scroll inside their box on narrow screens instead of widening the page. */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.doc table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.5;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}

.doc th {
  background: var(--sky-3);
  font-family: var(--display);
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
}

.doc tr:last-child td {
  border-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 2px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 24px 0 40px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

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