/* Shared stylesheet for the /legal/* pages. Standalone on purpose - the main
   styles.css is built around the scroll-driven landing scene and locks
   scrolling, which a plain document page must not inherit. */

@font-face {
  font-family: "PP Neue Montreal";
  src:
    url("/PPNeueMontreal-Medium.woff2") format("woff2"),
    url("/PPNeueMontreal-Medium.woff") format("woff");
  font-display: block;
}

:root {
  --bg: #12110e;
  --ink: #f4f2ef;
  --dim: #a7a09a;
  --line: rgba(244, 242, 239, 0.14);
  --font: "PP Neue Montreal", "Inter", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Helvetica Neue", "Arial", sans-serif, system-ui;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
a:hover { text-decoration-color: var(--ink); }

.legalWrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.legalTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.legalLogo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.legalLogo img {
  display: block;
  height: 20px;
  width: auto;
}

.legalNav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13.5px;
  color: var(--dim);
}
.legalNav a { text-decoration: none; color: var(--dim); }
.legalNav a:hover, .legalNav a[aria-current="page"] { color: var(--ink); }

h1 {
  font-family: var(--font);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 8px;
}

.legalMeta { color: var(--dim); font-size: 14px; margin: 0 0 40px; }

h2 {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 500;
  margin: 44px 0 12px;
}

h3 { font-size: 16.5px; font-weight: 600; margin: 28px 0 8px; }

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

.tableScroll { overflow-x: auto; margin: 18px 0; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
}
th { color: var(--dim); font-weight: 500; white-space: nowrap; }

code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(244, 242, 239, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--dim);
  font-size: 14.5px;
  margin: 18px 0;
}

.legalFooter {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.legalFooter a { color: var(--dim); text-decoration: none; }
.legalFooter a:hover { color: var(--ink); }
