:root {
  color-scheme: light;
  --ink: #1f2937;
  --heading: #111827;
  --muted: #475569;
  --line: #cbd5e1;
  --surface: #f8fafc;
  --accent: #3730a3;
  --gutter: clamp(1rem, 4vw, 2rem);
  font: 100% / 1.65 system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

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

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

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

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

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 1;
  top: 0.5rem;
  left: var(--gutter);
  padding: 0.5rem 0.75rem;
  background: #fff;
}

.site-width {
  max-width: 66rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .site-width {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--heading);
  font-weight: 700;
}

.brand img {
  object-fit: contain;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding-block: 0.45rem;
  font-size: 0.9rem;
}

.site-nav [aria-current="page"] {
  color: var(--heading);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(76ch + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
}

h1, h2 {
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.025em;
}

h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  scroll-margin-top: 1rem;
}

article p {
  margin: 0.75rem 0;
}

article ul, article ol {
  padding-inline-start: 1.4rem;
}

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

.updated, .field-help {
  color: var(--muted);
  font-size: 0.9rem;
}

.contents {
  margin-block: 1.5rem;
  padding: 0.75rem 1rem;
  border-inline-start: 3px solid var(--accent);
  background: var(--surface);
}

.contents p {
  margin: 0;
  font-weight: 700;
}

.contents ul {
  margin: 0.4rem 0 0;
}

.contents li {
  break-inside: avoid;
}

.retention {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: start;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.retention thead {
  background: #eef2ff;
}

.retention thead th:first-child {
  width: 37%;
}

.retention th, .retention td {
  padding: clamp(0.45rem, 2vw, 0.75rem);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: start;
}

.retention td strong {
  display: block;
  margin-bottom: 0.2rem;
}

address {
  font-style: normal;
}

address, .site-footer, article a {
  overflow-wrap: anywhere;
}

.registered-address {
  white-space: pre-line;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
}

.site-footer .site-width {
  display: grid;
  gap: 1.25rem;
  padding-block: 1.75rem;
}

.site-footer p {
  margin: 0;
}

.deletion-panel {
  margin-block: 1rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}

.deletion-panel fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 650;
}

.deletion-panel input,
.deletion-panel button {
  font: inherit;
}

.deletion-panel input[type="tel"],
.deletion-panel input[type="text"] {
  display: block;
  width: 100%;
  max-width: 23rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #64748b;
  border-radius: 0.3rem;
  background: #fff;
  color: var(--heading);
}

.field-help {
  margin: 0.3rem 0 1rem;
}

.confirm-label {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0.75rem 0;
}

.confirm-label input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--accent);
}

.deletion-panel button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0.3rem;
}

.deletion-panel button[type="submit"] {
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
}

.deletion-panel button[type="submit"]:hover:not(:disabled) {
  background: #241d75;
}

.deletion-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.deletion-panel .text-button {
  padding: 0.45rem 0;
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-top: 0.35rem;
}

.form-actions[hidden] {
  display: none;
}

.form-status p:empty {
  margin: 0;
}

@media (min-width: 40rem) {
  .contents ul {
    columns: 2;
    column-gap: 2rem;
  }

  .site-footer .site-width {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  body {
    display: block;
    min-height: 0;
    color: #000;
  }

  .skip-link, .site-header, .contents, .deletion-panel, noscript {
    display: none;
  }

  main, .site-width {
    max-width: none;
    padding: 0;
  }

  h1, h2, a {
    color: #000;
  }

  h1, h2 {
    break-after: avoid;
  }

  p, li {
    orphans: 3;
    widows: 3;
  }

  .retention tr {
    break-inside: avoid;
  }

  .site-footer {
    margin-top: 1.5rem;
    background: #fff;
    break-inside: avoid;
  }
}
