/* The privacy policy on wars.xoyk.dev, over the residents' page's own stylesheet (/styles.css): the same paper, ink,
   forest and type, a document column instead of the form. Written for web/build_site.py; drawn back from it in Figma
   WIP 1542:30172 (A1–A3, B1, B3), over the residents' page's tokens, bar and foot (WIP 1475:28323). */

@font-face { font-family: "Alegreya"; src: url("/fonts/Alegreya-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* The bar: the wordmark leads home, the languages are links rather than the page's buttons. */
a.wordmark { color: var(--ink); text-decoration: none; }
.languages a {
  font: 700 13px/16px var(--sans); color: var(--ink-2); text-decoration: none; border-radius: 13px;
  padding: 5px 10px; min-width: 36px; text-align: center;
}
.languages a[aria-current="page"] { background: var(--forest-wash); color: var(--forest); }
.languages:empty { display: none; }

.doc { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 28px var(--gutter) 40px; }
.draft-badge {
  display: inline-block; margin-bottom: 16px; padding: 4px 10px; border: 2px solid var(--warning); border-radius: 10px;
  font: 700 12px/14px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--warning);
}

.policy-text { font-size: 17px; line-height: 25px; overflow-wrap: break-word; }
.policy-text > * + * { margin-top: 14px; }
.policy-text h1 { font: 700 30px/34px var(--caps); }
.policy-text h1 + p { color: var(--ink-2); font-size: 16px; line-height: 22px; margin-top: 8px; }
.policy-text h2 { font: 700 22px/28px var(--caps); margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.policy-text h3 { font: 700 17px/22px var(--sans); margin-top: 26px; }
.policy-text h2 + *, .policy-text h3 + * { margin-top: 10px; }
.policy-text strong { font-weight: 700; }
.policy-text ul, .policy-text ol { padding-left: 22px; }
.policy-text li + li { margin-top: 6px; }
.policy-text li > * + * { margin-top: 6px; }
.policy-text li::marker { color: var(--gold-dark); }
.policy-text code {
  font: 400 0.92em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--panel); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 4px; overflow-wrap: anywhere;
}
.policy-text blockquote { margin: 18px 0 0; padding: 12px 14px; background: var(--panel); border: 2px solid var(--warning); border-radius: 12px; }
.policy-text .placeholder { background: #F6D9A8; color: var(--ink); padding: 0 2px; border-radius: 3px; }

/* The sections, under the introduction (WIP 1542:30172, C1): the panel's card, a link per line. */
.policy-text .contents { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 18px; }
.policy-text .contents-title { font: 700 20px/27px var(--caps); }
.policy-text .contents ul { list-style: none; padding: 0; margin-top: 10px; }
.policy-text .contents li { font-size: 16px; line-height: 30px; }
.policy-text .contents li + li { margin-top: 0; }

/* Tables: the panel's card, wrapping at a phone's width rather than scrolling the page sideways. */
.policy-text .table { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.policy-text table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 21px; }
.policy-text th, .policy-text td { text-align: left; vertical-align: top; padding: 9px 10px; overflow-wrap: break-word; hyphens: manual; }
.policy-text th { font: 700 12px/14px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding-top: 12px; }
.policy-text tbody tr { border-top: 1px solid var(--line); }

/* The 404: two short sections, one per language. */
.policy-text section + section { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.policy-text section > * + * { margin-top: 12px; }

@media (min-width: 900px) {
  .doc { padding: 56px 40px 72px; }
  .policy-text { font-size: 18px; line-height: 27px; }
  .policy-text h1 { font-size: 44px; line-height: 50px; }
  .policy-text h2 { font-size: 26px; line-height: 32px; }
  .policy-text h3 { font-size: 18px; line-height: 24px; }
  .policy-text table { font-size: 16px; line-height: 22px; }
}
