/* Legal pages. Same type as the landing: Fraunces and Source Sans 3 on app paper. */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fraunces-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fraunces-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #F6F1E8;
  --text: #1C1916;
  --muted: #6B635A;
  --line: #E3DACD;
  --focus: #1E6E8C;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  padding: 0.4rem 0.7rem;
  text-decoration: none;
}

.skip:focus {
  position: fixed;
  transform: none;
  z-index: 5;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.35rem 1.2rem 4rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--text);
}

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.95rem;
}

.site-nav a {
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

main {
  border-top: 1px solid var(--text);
  padding-top: 1.35rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 2.1rem 0 0.55rem;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 1.35rem 0 0.35rem;
}

p,
ul,
ol,
address {
  margin: 0.7rem 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--text);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--text);
}

a:focus-visible,
.skip:focus {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.lang {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

address {
  font-style: normal;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

th,
td {
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.45rem;
}

th {
  font-weight: 600;
}

footer {
  margin-top: 2.75rem;
  padding-top: 0.85rem;
  border-top: 3px solid var(--text);
  box-shadow: 0 -4px 0 0 var(--bg), 0 -5px 0 0 var(--text);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }

  .skip {
    display: none;
  }
}
