:root {
  color-scheme: light;
  --ink: #071641;
  --ink-soft: #32405f;
  --muted: #65718a;
  --line: #d9e0e8;
  --line-strong: #bcc8d6;
  --surface: #ffffff;
  --surface-soft: #f5f9fc;
  --accent: #008fd0;
  --accent-dark: #006ca8;
  --focus: #00aee6;
  --success: #166b51;
  --shadow: 0 16px 44px rgb(7 22 65 / 7%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --content: 1200px;
  --article: 760px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --ui-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--ui-font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid rgb(0 174 230 / 35%);
  outline-offset: 3px;
}

code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
}

.site-header__inner {
  width: min(calc(100% - 3rem), var(--content));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 43px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-self: stretch;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 620;
  text-decoration: none;
}

.primary-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
}

.directory {
  width: min(calc(100% - 3rem), var(--content));
  margin: 0 auto;
  padding: var(--space-7) 0 var(--space-6);
}

.directory-intro {
  max-width: 780px;
}

.directory-intro h1,
.policy-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.directory-intro p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.app-directory {
  margin-top: var(--space-6);
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 1.15rem;
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 66px;
  padding: 0 1.2rem 0 3.45rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 0 rgb(7 22 65 / 2%);
  font: inherit;
  font-size: 1.04rem;
}

.search-field input:hover {
  border-color: var(--accent);
}

.search-field input:focus {
  border-color: var(--focus);
  outline: 3px solid rgb(0 174 230 / 15%);
}

.search-field input::placeholder {
  color: #77839a;
}

.directory-note {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: var(--space-5);
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-soft);
}

.directory-note svg {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.16rem;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.directory-note p {
  margin: 0;
  color: var(--ink-soft);
}

.directory-note strong {
  color: var(--ink);
}

.app-list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: var(--space-6);
}

.app-list-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.app-list-heading span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.app-columns {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 0.72fr 0.95fr minmax(190px, auto);
  gap: 1.5rem;
  margin-top: 1.65rem;
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-row {
  border-bottom: 1px solid var(--line);
}

.app-row[hidden] {
  display: none;
}

.app-row__link {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 0.72fr 0.95fr minmax(190px, auto);
  align-items: center;
  gap: 1.5rem;
  min-height: 108px;
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 140ms ease;
}

.app-row__link:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.app-row__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.app-row__identity img {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgb(7 22 65 / 12%);
}

.app-row__identity span {
  min-width: 0;
}

.app-row__identity strong,
.app-row__identity small {
  display: block;
}

.app-row__identity strong {
  font-size: 1.08rem;
  line-height: 1.3;
}

.app-row__identity small {
  margin-top: 0.2rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-row__platforms,
.app-row__updated {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.app-row__action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 690;
}

.app-row__action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mobile-label {
  display: none;
}

.empty-result {
  margin: 0;
  padding: 2.5rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.directory-help {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  text-align: center;
}

.policy-layout {
  width: min(calc(100% - 3rem), 1260px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, var(--article));
  justify-content: center;
  gap: clamp(3rem, 7vw, 6.5rem);
  padding: var(--space-6) 0 var(--space-7);
}

.contents {
  align-self: start;
  position: sticky;
  top: 2rem;
  padding-top: 2.75rem;
}

.contents > strong {
  display: block;
  margin-bottom: 1.1rem;
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contents nav {
  display: grid;
  gap: 0.12rem;
}

.contents a {
  display: block;
  padding: 0.52rem 0.8rem;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
}

.contents a:hover,
.contents a[aria-current="location"] {
  border-left-color: var(--accent);
  color: var(--accent-dark);
  background: var(--surface-soft);
}

.policy-article {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumbs a {
  font-weight: 650;
  text-decoration: none;
}

.policy-heading {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line-strong);
}

.policy-heading h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.policy-meta span {
  color: var(--line-strong);
}

.policy-summary {
  margin: 1.4rem 0 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  font-weight: 590;
  line-height: 1.55;
}

.policy-section {
  padding: var(--space-6) 0 0;
}

.policy-section + .policy-section {
  margin-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.policy-section p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
}

.fact-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.fact-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  gap: 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  font-weight: 670;
}

.fact-list dd {
  margin: 0;
  color: var(--ink-soft);
}

.detail-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.detail-list strong {
  color: var(--ink);
}

.detail-list span {
  color: var(--ink-soft);
}

.action-note {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-soft);
}

.action-note strong {
  color: var(--ink);
}

.action-note p {
  margin-top: 0.25rem;
}

.table-scroll {
  margin-top: 1.4rem;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.45;
}

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

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody th {
  width: 42%;
  font-weight: 500;
}

tbody th strong,
tbody th small {
  display: block;
}

tbody th small {
  margin-top: 0.3rem;
  color: var(--muted);
  font-weight: 430;
  line-height: 1.45;
}

td ul {
  margin: 0;
  padding-left: 1rem;
}

.provider-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.provider-links a {
  font-weight: 620;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.split-section h2 {
  font-size: 1.55rem;
}

.version-history ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.version-history li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.version-history time {
  color: var(--ink);
  font-weight: 670;
}

.version-history li span,
.reviewed {
  color: var(--muted);
}

.reviewed {
  font-size: 0.82rem;
}

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

.site-footer__inner {
  width: min(calc(100% - 3rem), var(--content));
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
}

.site-footer a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 620;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .policy-layout {
    grid-template-columns: minmax(0, var(--article));
  }

  .contents {
    display: none;
  }

  .app-columns {
    display: none;
  }

  .app-row__link {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
  }

  .app-row__identity {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .app-row__platforms,
  .app-row__updated {
    grid-column: 1;
    margin-left: 80px;
  }

  .app-row__platforms {
    display: none;
  }

  .app-row__action {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header__inner,
  .directory,
  .policy-layout,
  .site-footer__inner {
    width: min(calc(100% - 2rem), var(--content));
  }

  .site-header__inner {
    min-height: 68px;
    gap: 0.75rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand img {
    width: 40px;
    height: 34px;
  }

  .primary-nav {
    gap: 1rem;
  }

  .primary-nav a {
    font-size: 0.82rem;
  }

  .directory {
    padding-top: var(--space-6);
  }

  .directory-intro h1,
  .policy-heading h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .app-directory {
    margin-top: var(--space-5);
  }

  .search-field input {
    min-height: 58px;
  }

  .directory-note {
    padding: 1rem;
  }

  .app-row__link {
    min-height: 126px;
    padding: 1rem 0;
  }

  .app-row__action {
    width: 42px;
    min-width: 42px;
    padding: 0.65rem;
    border-color: var(--line-strong);
    font-size: 0;
  }

  .app-row__action svg {
    margin: auto;
  }

  .mobile-label {
    display: inline;
  }

  .directory-help {
    text-align: left;
  }

  .policy-layout {
    padding-top: var(--space-5);
  }

  .policy-heading {
    padding-bottom: var(--space-5);
  }

  .policy-meta {
    display: block;
  }

  .policy-meta span {
    display: none;
  }

  .fact-list div,
  .detail-list li,
  .version-history li,
  .split-section {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .detail-list li {
    gap: 0.35rem;
  }

  .split-section {
    gap: var(--space-5);
  }

  .table-scroll {
    margin-right: -1rem;
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  }

  .site-footer__inner {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .brand span {
    display: none;
  }

  .primary-nav {
    gap: 1.2rem;
  }

  .app-row__identity img {
    width: 56px;
    height: 56px;
    border-radius: 13px;
  }

  .app-row__platforms,
  .app-row__updated {
    margin-left: 72px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .contents,
  .skip-link,
  .action-note {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 11pt;
  }

  .policy-layout {
    width: 100%;
    display: block;
    padding: 0;
  }

  .policy-section {
    break-inside: avoid;
  }

  a {
    color: #000;
  }
}
