:root {
  color-scheme: light;
  --bg: #faf9f5;
  --bg-alt: #f1efe7;
  --ink: #1d1b16;
  --muted: #6b685f;
  --line: #e7e3d8;
  --accent: #c96442;
  --accent-hover: #b5573a;
  --accent-muted: #9a5640;
  --warn: #7b4a28;
  --content: 920px;
  --measure: 760px;
  --edge: max(22px, calc((100vw - var(--content)) / 2));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.48;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.legal-floating-back {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--edge) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.legal-floating-back__arrow {
  font-size: 1.12rem;
}

main {
  width: 100%;
  margin: 0;
  padding: calc(52px + env(safe-area-inset-top, 0px)) 0 0;
}

.legal-floating-back + main {
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
}

header,
section,
footer {
  padding-left: var(--edge);
  padding-right: var(--edge);
}

header {
  padding-top: 72px;
  padding-bottom: 44px;
  background: var(--bg);
}

section,
footer {
  padding-top: 50px;
  padding-bottom: 54px;
  border-top: 1px solid var(--line);
}

section:nth-of-type(even) {
  background: var(--bg-alt);
}

header > *,
section > *,
footer > * {
  max-width: var(--measure);
}

table {
  max-width: var(--content);
}

.brand {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: var(--content);
  font-size: 56px;
}

h2 {
  font-size: 30px;
}

h3 {
  margin: 30px 0 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

p,
ul,
ol {
  margin: 16px 0 0;
}

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

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

table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

caption {
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  padding-bottom: 10px;
}

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

th {
  color: var(--ink);
  font-weight: 600;
}

td + td,
th + th,
th + td {
  padding-left: 24px;
}

a {
  color: var(--accent-muted);
  font-weight: 600;
  text-underline-offset: 3px;
}

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

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

nav a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
}

nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
}

.meta {
  color: var(--muted);
}

.notice {
  max-width: var(--measure);
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--warn);
}

.summary {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 24px;
}

.link-list a {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
}

.callout {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
}

footer {
  background: var(--bg-alt);
  color: var(--muted);
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  :root {
    --edge: 20px;
  }

  .legal-floating-back {
    height: calc(50px + env(safe-area-inset-top, 0px));
  }

  main,
  .legal-floating-back + main {
    padding-top: calc(50px + env(safe-area-inset-top, 0px));
  }

  header {
    padding-top: 44px;
    padding-bottom: 34px;
  }

  section,
  footer {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 19px;
  }

  .summary {
    font-size: 18px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  tr + tr {
    margin-top: 20px;
  }

  td,
  th {
    padding: 10px 0;
  }

  td + td,
  th + th,
  th + td {
    padding-left: 0;
  }
}

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