:root {
  color-scheme: light;
  --legal-page: #f4f7f9;
  --legal-surface: #ffffff;
  --legal-text: #16242c;
  --legal-muted: #5c6c75;
  --legal-line: #d5dfe4;
  --legal-line-strong: #aebdc5;
  --legal-accent: #1767a9;
  --legal-accent-soft: #e8f2f9;
  --legal-notice: #eef5f8;
  --legal-focus: #f2bd22;
  --legal-art-overlay: rgba(236, 246, 250, 0.6);
  --legal-menu: #1767a9;
  --legal-menu-muted: rgba(255, 255, 255, 0.76);
  --legal-footer: #eef9ff;
  --legal-footer-text: #315d78;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--legal-page);
  color: var(--legal-text);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --legal-page: #10181d;
  --legal-surface: #151f25;
  --legal-text: #edf3f6;
  --legal-muted: #adbac1;
  --legal-line: #334149;
  --legal-line-strong: #52636c;
  --legal-accent: #70b7ed;
  --legal-accent-soft: #193449;
  --legal-notice: #1a2a33;
  --legal-focus: #ffd34f;
  --legal-art-overlay: rgba(7, 14, 19, 0.8);
  --legal-menu: #0e4674;
  --legal-menu-muted: rgba(255, 255, 255, 0.74);
  --legal-footer: #0a2a40;
  --legal-footer-text: #b9d9ed;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--legal-page);
  background-image:
    linear-gradient(var(--legal-art-overlay), var(--legal-art-overlay)),
    url('/backgrounds/pocketlife-site-sky-landscape.png');
  background-attachment: fixed;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--legal-text);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--legal-accent);
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--legal-focus);
  outline-offset: 3px;
}

.legal-skip-link {
  background: var(--legal-text);
  color: var(--legal-surface);
  font-weight: 750;
  left: 16px;
  padding: 9px 13px;
  position: fixed;
  top: -80px;
  z-index: 20;
}

.legal-skip-link:focus {
  top: 12px;
}

.legal-header {
  background: var(--legal-menu);
  position: relative;
  z-index: 5;
}

.legal-header,
.legal-footer {
  font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(calc(100% - 40px), 1200px);
  margin-inline: auto;
}

.legal-header-inner {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  min-height: 76px;
}

.legal-brand {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.02rem;
  font-weight: 850;
  gap: 10px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.legal-brand img {
  display: block;
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.legal-nav {
  align-items: center;
  align-self: center;
  display: flex;
  gap: 22px;
  justify-self: end;
  line-height: normal;
}

.legal-nav a {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--legal-menu-muted);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 750;
  padding: 7px 0 5px;
  text-decoration: none;
  white-space: nowrap;
}

.legal-nav a[aria-current="page"] {
  border-bottom-color: #ffffff;
  color: #ffffff;
}

.legal-nav .legal-nav-donate {
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 5px;
  box-shadow: 0 3px 0 rgba(3, 35, 61, 0.34);
  color: var(--legal-menu) !important;
  font-weight: 900;
  min-height: 32px;
  padding: 5px 10px;
}

.legal-header-controls {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-self: end;
}

.legal-theme-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 5px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  padding: 6px 10px;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.legal-theme-icon {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  transform-origin: center;
}

.legal-menu-toggle {
  align-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 5px;
  cursor: pointer;
  display: none;
  gap: 4px;
  height: 38px;
  justify-items: center;
  padding: 8px;
  width: 38px;
}

.legal-menu-toggle > span {
  background: #ffffff;
  border-radius: 2px;
  display: block;
  height: 2px;
  width: 18px;
}

.legal-menu-toggle.is-open > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.legal-menu-toggle.is-open > span:nth-child(2) {
  opacity: 0;
}

.legal-menu-toggle.is-open > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.legal-theme-toggle.is-flicking {
  animation: legal-theme-control-flick 360ms ease-out;
}

.legal-theme-toggle.is-flicking .legal-theme-icon {
  animation: legal-theme-icon-flick 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes legal-theme-control-flick {
  0%, 100% {
    background: transparent;
  }
  48% {
    background: var(--legal-accent-soft);
  }
}

@keyframes legal-theme-icon-flick {
  0% {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }
  42% {
    opacity: 0;
    transform: translateX(9px) rotate(110deg) scale(0.65);
  }
  43% {
    opacity: 0;
    transform: translateX(-9px) rotate(-90deg) scale(0.65);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

.legal-main {
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--legal-surface) 95%, transparent);
  margin-block: 28px;
  max-width: 840px;
  padding: clamp(48px, 7vw, 78px) clamp(24px, 6vw, 56px) 88px;
}

.legal-document {
  min-width: 0;
}

.legal-toc {
  display: none;
}

.legal-kicker {
  color: var(--legal-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--legal-text);
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 720px;
}

h2 {
  font-size: 1.26rem;
  font-weight: 780;
  letter-spacing: -0.015em;
  margin: 52px 0 18px;
}

h3 {
  font-size: 1rem;
  font-weight: 780;
  margin: 28px 0 6px;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 18px 0 22px;
  padding-left: 1.45rem;
}

li {
  padding-left: 4px;
}

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

li::marker {
  color: var(--legal-accent);
  font-weight: 800;
}

.legal-meta {
  color: var(--legal-muted);
  font-size: 0.86rem;
  margin: 12px 0 0;
}

.legal-summary {
  color: var(--legal-muted);
  font-size: clamp(1.05rem, 2.5vw, 1.18rem);
  line-height: 1.65;
  margin: 26px 0 0;
  max-width: 700px;
}

.legal-notice {
  background: var(--legal-notice);
  border: 1px solid var(--legal-line);
  margin: 38px 0 6px;
  padding: 20px 22px 18px;
}

.legal-notice::before {
  color: var(--legal-accent);
  content: "CURRENT STATUS";
  display: block;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.legal-notice p {
  font-size: 0.94rem;
  line-height: 1.58;
}

.legal-notice p:last-child {
  margin-bottom: 0;
}

.legal-action {
  align-items: center;
  background: var(--legal-accent);
  border: 1px solid var(--legal-accent);
  border-radius: 5px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 780;
  justify-content: center;
  margin: 6px 0 10px;
  min-height: 44px;
  padding: 9px 15px;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

:root[data-theme="dark"] .legal-action {
  background: #2375b3;
  border-color: #70b7ed;
}

.legal-small {
  color: var(--legal-muted);
  font-size: 0.88rem;
}

.legal-main-socials {
  max-width: 1040px;
}

.legal-main-about {
  max-width: 1100px;
}

.legal-main-support {
  max-width: 1000px;
}

.legal-support-hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 70px);
  grid-template-columns: minmax(0, 1fr) 170px;
}

.legal-support-hero > img {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
  height: 160px;
  justify-self: center;
  object-fit: contain;
  width: 160px;
}

.legal-support-notice::before {
  content: "VOLUNTARY SUPPORT";
}

.legal-support-options {
  border: 1px solid var(--legal-line-strong);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 38px 0 48px;
}

.legal-support-option {
  align-content: start;
  display: grid;
  padding: clamp(24px, 4vw, 34px);
}

.legal-support-option + .legal-support-option {
  border-left: 1px solid var(--legal-line);
}

.legal-support-option h2 {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
}

.legal-support-option > p:not(.legal-kicker) {
  color: var(--legal-muted);
  margin: 0 0 20px;
}

.legal-support-option .legal-action {
  align-self: end;
  margin: auto 0 0;
  width: 100%;
}

.legal-support-option .legal-support-action {
  box-shadow: 0 4px 0 color-mix(in srgb, var(--legal-accent) 68%, #000000);
  font-weight: 850;
  gap: 8px;
  min-height: 50px;
}

.legal-support-action span {
  font-size: 1.08rem;
  line-height: 1;
}

.legal-support-copy {
  max-width: 760px;
}

.legal-about-hero {
  align-items: center;
  display: grid;
  gap: clamp(36px, 6vw, 70px);
  grid-template-columns: minmax(0, 1fr) 250px;
  padding-bottom: 52px;
}

.legal-about-emblem {
  align-items: center;
  color: var(--legal-text);
  display: grid;
  justify-items: center;
  padding: 12px;
  text-align: center;
}

.legal-about-emblem img {
  filter: drop-shadow(0 9px 14px rgba(0, 0, 0, 0.22));
  height: 132px;
  object-fit: contain;
  width: 132px;
}

.legal-about-emblem span {
  display: grid;
  gap: 3px;
}

.legal-about-emblem strong {
  font-size: 1.12rem;
}

.legal-about-emblem small {
  color: var(--legal-muted);
  line-height: 1.45;
}

.legal-about-story {
  max-width: 800px;
}

.legal-about-principles {
  border: 1px solid var(--legal-line-strong);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 38px 0 8px;
}

.legal-about-principles article {
  padding: 24px;
}

.legal-about-principles article + article {
  border-left: 1px solid var(--legal-line);
}

.legal-about-principles h3 {
  margin: 0 0 8px;
}

.legal-about-principles p {
  color: var(--legal-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.legal-about-callout {
  align-items: center;
  background: var(--legal-notice);
  border: 1px solid var(--legal-line-strong);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-top: 58px;
  padding: 28px 30px;
}

.legal-about-callout h2 {
  border: 0;
  margin: 0 0 8px;
  padding: 0;
}

.legal-about-callout p:last-child {
  color: var(--legal-muted);
  margin-bottom: 0;
}

.legal-about-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-action-secondary,
:root[data-theme="dark"] .legal-action-secondary {
  background: transparent;
  color: var(--legal-accent);
}

.legal-social-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 38px;
}

.legal-social-card {
  align-items: center;
  background: color-mix(in srgb, var(--legal-accent) 7%, var(--legal-surface));
  border: 1px solid color-mix(in srgb, var(--legal-accent) 42%, var(--legal-line));
  border-radius: 7px;
  color: var(--legal-text);
  display: grid;
  gap: 14px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  min-height: 86px;
  padding: 14px 16px;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.legal-social-art {
  align-items: center;
  background: color-mix(in srgb, var(--legal-accent) 15%, var(--legal-surface));
  border: 1px solid color-mix(in srgb, var(--legal-accent) 26%, var(--legal-line));
  border-radius: 50%;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.legal-social-art img {
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.legal-social-card > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.legal-social-card strong {
  font-size: 1rem;
}

.legal-social-card small {
  color: var(--legal-muted);
  font-size: 0.84rem;
}

.legal-social-list {
  border-bottom: 1px solid var(--legal-line);
  border-top: 1px solid var(--legal-line);
  margin: 22px 0 30px;
}

.legal-social-list a {
  align-items: center;
  color: var(--legal-text);
  display: grid;
  gap: 8px 18px;
  grid-template-columns: minmax(120px, 0.8fr) minmax(150px, 1fr) auto;
  min-height: 58px;
  padding: 10px 4px;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.legal-social-list a + a {
  border-top: 1px solid var(--legal-line);
}

.legal-social-name {
  font-weight: 780;
}

.legal-social-handle {
  color: var(--legal-muted);
  font-size: 0.9rem;
}

.legal-social-arrow {
  color: var(--legal-accent);
}

.legal-social-arrow,
.legal-external-icon {
  display: inline-block;
  height: 18px;
  position: relative;
  width: 18px;
}

.legal-social-arrow::before,
.legal-external-icon::before {
  border-right: 3px solid currentColor;
  border-top: 3px solid currentColor;
  box-sizing: border-box;
  content: "";
  height: 10px;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 10px;
}

.legal-social-arrow::after,
.legal-external-icon::after {
  background: currentColor;
  content: "";
  height: 3px;
  left: 1px;
  position: absolute;
  top: 9px;
  transform: rotate(-45deg);
  transform-origin: center;
  width: 15px;
}

.legal-update + .legal-update {
  margin-top: 58px;
  padding-top: 6px;
}

.legal-update-date,
.legal-update-version {
  color: var(--legal-muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.legal-update h2 {
  margin-top: 12px;
}

.legal-footer {
  background: var(--legal-footer);
  color: var(--legal-footer-text);
  padding: 32px 0 24px;
}

.legal-footer-inner {
  display: grid;
  font-size: 0.75rem;
  gap: 20px;
  max-width: 1080px;
}

.legal-footer-main,
.legal-footer-bottom {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.legal-footer-brand {
  align-items: center;
  color: var(--legal-footer-text);
  display: flex;
  gap: 14px;
  text-align: left;
  text-decoration: none;
}

.legal-footer .legal-footer-brand {
  text-decoration: none;
}

.legal-footer-brand img {
  height: 54px;
  width: 54px;
}

.legal-footer-brand > span {
  border-left: 1px solid var(--legal-line-strong);
  display: grid;
  gap: 2px;
  padding-left: 14px;
}

.legal-footer-brand strong {
  font-size: 0.92rem;
}

.legal-footer-brand small {
  color: var(--legal-footer-text);
  font-size: 0.72rem;
  line-height: 1.35;
}

.legal-footer-follow {
  display: grid;
  gap: 8px;
  text-align: left;
}

.legal-footer-follow > span {
  color: var(--legal-footer-text);
  font-size: 0.7rem;
  font-weight: 750;
}

.legal-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-footer-socials a {
  align-items: center;
  background: color-mix(in srgb, var(--legal-accent) 12%, var(--legal-surface));
  border: 1px solid color-mix(in srgb, var(--legal-accent) 42%, var(--legal-line));
  border-radius: 50%;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  text-decoration: none;
  width: 32px;
  transition: filter 150ms ease, transform 150ms ease;
}

.legal-footer-socials img {
  height: 21px;
  object-fit: contain;
  width: 21px;
}

.legal-footer-bottom {
  color: var(--legal-footer-text);
  font-size: 0.68rem;
  margin-top: 18px;
  padding-top: 14px;
}

.legal-footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.legal-footer a {
  color: var(--legal-footer-text);
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--legal-footer-text) 46%, transparent);
  text-underline-offset: 3px;
}

.legal-action:active,
.legal-theme-toggle:active,
.legal-social-list a:active,
.legal-social-card:active,
.legal-footer-socials a:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .legal-action:hover {
    background: color-mix(in srgb, var(--legal-accent) 84%, #000000);
    transform: translateY(-2px);
  }

  .legal-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
  }

  .legal-nav a:hover {
    color: #ffffff;
  }

  .legal-social-list a:hover {
    background: var(--legal-accent-soft);
    transform: translateX(4px);
  }

  .legal-social-card:hover {
    background: color-mix(in srgb, var(--legal-accent) 13%, var(--legal-surface));
    border-color: color-mix(in srgb, var(--legal-accent) 72%, var(--legal-line));
    transform: translateY(-3px);
  }

  .legal-action-secondary:hover {
    background: var(--legal-accent-soft);
    color: var(--legal-accent);
  }

  .legal-toc a:hover,
  .legal-footer-bottom a:hover {
    color: var(--legal-accent);
  }

  .legal-footer-socials a:hover {
    filter: brightness(1.12);
    transform: translateY(-3px) rotate(-3deg);
  }
}

@media (max-width: 1040px) {
  .legal-header-inner {
    gap: 12px;
  }

  .legal-brand {
    font-size: 0.96rem;
  }

  .legal-brand img {
    height: 38px;
    width: 38px;
  }

  .legal-nav {
    gap: 8px;
    min-width: 0;
  }

  .legal-nav a {
    font-size: 0.76rem;
  }
}

@media (max-width: 760px) {
  body {
    background-image:
      linear-gradient(var(--legal-art-overlay), var(--legal-art-overlay)),
      url('/backgrounds/pocketlife-site-sky-portrait.png');
  }

  .legal-header-inner {
    gap: 14px;
    grid-template-areas: "brand controls";
    grid-template-columns: 1fr auto;
    min-height: 60px;
    padding-block: 8px;
    padding-top: max(8px, env(safe-area-inset-top));
    position: relative;
    width: min(calc(100% - 28px), 1200px);
  }

  .legal-brand {
    font-size: 0.94rem;
    grid-area: brand;
  }

  .legal-brand img {
    height: 36px;
    width: 36px;
  }

  .legal-nav {
    background: color-mix(in srgb, var(--legal-menu) 94%, #061f33);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    box-shadow: 0 12px 24px rgba(3, 35, 61, 0.22);
    gap: 0;
    grid-template-columns: 1fr;
    left: auto;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: min(270px, calc(100vw - 28px));
    z-index: 8;
  }

  html.has-pocketlife-site-js .legal-nav {
    display: none;
  }

  html.has-pocketlife-site-js .legal-nav.is-open {
    display: grid;
  }

  html:not(.has-pocketlife-site-js) .legal-header-inner {
    gap: 8px 14px;
    grid-template-areas:
      "brand theme"
      "nav nav";
  }

  html:not(.has-pocketlife-site-js) .legal-nav {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-area: nav;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    padding: 0 0 8px;
    position: static;
    width: 100%;
  }

  html:not(.has-pocketlife-site-js) .legal-theme-toggle {
    grid-area: theme;
  }

  .legal-nav a {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 3px;
    font-size: 0.8rem;
    justify-content: flex-start;
    min-height: 38px;
    padding: 7px 10px;
  }

  .legal-nav a:last-child {
    border-bottom-color: transparent;
  }

  .legal-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .legal-nav .legal-nav-donate,
  .legal-nav .legal-nav-donate[aria-current="page"] {
    background: #ffffff;
    border: 1px solid #ffffff;
    margin-block: 3px;
    min-height: 38px;
    padding: 7px 10px;
  }

  .legal-header-controls {
    grid-area: controls;
  }

  .legal-theme-toggle {
    font-size: 0.76rem;
    min-height: 38px;
    padding: 5px 8px;
  }

  .legal-menu-toggle {
    display: grid;
  }

  .legal-main {
    border-left: 0;
    border-right: 0;
    display: block;
    margin-block: 0;
    padding: 36px 18px 64px;
    width: 100%;
  }

  .legal-social-grid {
    grid-template-columns: 1fr;
  }

  .legal-about-hero {
    gap: 30px;
    grid-template-columns: 1fr;
    padding-bottom: 38px;
  }

  .legal-about-emblem {
    grid-template-columns: 92px minmax(0, 1fr);
    justify-items: start;
    min-height: 0;
    text-align: left;
  }

  .legal-about-emblem img {
    height: 92px;
    width: 92px;
  }

  .legal-about-principles {
    grid-template-columns: 1fr;
  }

  .legal-about-principles article + article {
    border-left: 0;
    border-top: 1px solid var(--legal-line);
  }

  .legal-about-callout {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 20px;
  }

  .legal-about-actions {
    flex-direction: column;
  }

  .legal-about-actions .legal-action {
    margin: 0;
    width: 100%;
  }

  .legal-support-hero {
    gap: 26px;
    grid-template-columns: 1fr;
  }

  .legal-support-hero > img {
    height: 110px;
    justify-self: start;
    width: 110px;
  }

  .legal-support-options {
    grid-template-columns: 1fr;
  }

  .legal-support-option + .legal-support-option {
    border-left: 0;
    border-top: 1px solid var(--legal-line);
  }

  .legal-footer-inner {
    width: min(calc(100% - 28px), 1200px);
  }

  .legal-footer {
    padding-block: 28px 24px;
    text-align: center;
  }

  .legal-footer-main,
  .legal-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-footer-bottom {
    width: 100%;
  }

  .legal-footer-bottom nav {
    display: flex;
    gap: 6px 14px;
    justify-content: flex-start;
  }

  .legal-footer-brand > span {
    border-left: 0;
    padding-left: 0;
  }

  .legal-footer-follow {
    width: 100%;
  }

  .legal-footer-socials {
    justify-content: flex-start;
  }
}

@media (min-width: 1040px) {
  .legal-main.has-toc {
    align-items: start;
    display: grid;
    gap: 52px;
    grid-template-columns: 210px minmax(0, 780px);
    justify-content: center;
    max-width: 1200px;
    padding-inline: 48px;
  }

  .legal-toc {
    align-self: start;
    display: block;
    position: sticky;
    top: 26px;
  }

  .legal-toc-label {
    color: var(--legal-text);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    margin: 0 0 10px;
    text-transform: uppercase;
  }

  .legal-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .legal-toc li {
    margin: 0;
    padding: 0;
  }

  .legal-toc a {
    color: var(--legal-muted);
    display: block;
    font-size: 0.82rem;
    line-height: 1.35;
    padding: 6px 0;
    text-decoration: none;
  }
}

@media (max-width: 420px) {
  .legal-header-inner {
    width: min(calc(100% - 28px), 1200px);
  }

  .legal-main {
    padding-inline: 16px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.35rem);
  }

  h2 {
    margin-top: 44px;
  }

  .legal-notice {
    margin-inline: 0;
    padding-inline: 14px;
  }

  .legal-social-list a {
    gap: 2px 10px;
    grid-template-columns: 1fr auto;
  }

  .legal-social-list .legal-social-handle {
    grid-column: 1;
    grid-row: 2;
  }

  .legal-social-list .legal-social-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .legal-social-card .legal-social-arrow {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 360px) {
  .legal-theme-label {
    display: none;
  }

  .legal-theme-toggle {
    width: 38px;
  }

  html.has-pocketlife-site-js .legal-nav.is-open {
    width: min(250px, calc(100vw - 28px));
  }
}

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

  .legal-theme-toggle.is-flicking,
  .legal-theme-toggle.is-flicking .legal-theme-icon,
  .legal-action,
  .legal-theme-toggle,
  .legal-social-list a,
  .legal-social-card,
  .legal-footer-socials a {
    animation: none;
    transition: none;
  }
}

@media print {
  :root,
  :root[data-theme="dark"] {
    color-scheme: light;
    --legal-page: #ffffff;
    --legal-surface: #ffffff;
    --legal-text: #000000;
    --legal-muted: #444444;
    --legal-line: #bbbbbb;
    --legal-notice: #f3f3f3;
  }

  .legal-header,
  .legal-footer,
  .legal-skip-link {
    display: none;
  }

  .legal-main {
    max-width: none;
    padding: 0;
    width: 100%;
  }
}
