/* PawTrust legal pages — shares the dark identity of the marketing site.
   The light-theme token block below is retained only so the historical
   contrast contract stays documented; the dark values are what render. */

:root {
  color-scheme: dark;

  /* Reference light palette (not applied) */
  --light-ink: #1f2521;
  --light-muted: #505a53;
  --light-focus: #005fcc;

  --ink: #f7f6f4;
  --muted: #b6b4b0;
  --background: #0d0d0f;
  --surface: #17171b;
  --surface-soft: #1d1d22;
  --line: rgba(255, 255, 255, 0.09);
  --link: #f7b755;
  --accent: #eda13c;
  --focus: #eda13c;
  --notice: #8fe0b4;
  --notice-soft: rgba(88, 192, 138, 0.12);
  --shadow: rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration-thickness: 0.14em;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  inset: 1rem auto auto 1rem;
  transform: translateY(-200%);
  padding: 0.7rem 1rem;
  color: var(--surface);
  background: var(--ink);
  border-radius: 0.7rem;
  font-weight: 800;
}

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

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

.legal-nav {
  display: flex;
  width: min(980px, calc(100% - 2rem));
  min-height: 72px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  color: #1a1206;
  background: linear-gradient(150deg, #f7b755, #d9862a);
  border-radius: 12px;
}

.language-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-links a {
  min-width: 2.3rem;
  padding: 0.28rem 0.5rem;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.language-links [aria-current="page"] {
  color: #1a1206;
  background: linear-gradient(150deg, #f7b755, #d9862a);
}

.legal-shell {
  width: min(840px, calc(100% - 2rem));
  margin: 0 auto;
}

.legal-card {
  margin-block: clamp(1rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 5vw, 3.5rem);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 50px var(--shadow);
}

.legal-title {
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 2.8rem 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 1.7rem 0 0.5rem;
  font-size: 1.2rem;
}

p,
li {
  max-width: 72ch;
}

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

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

.meta {
  margin: 0;
  font-size: 0.92rem;
}

.operator-card,
.notice,
.inactive-panel {
  margin-block: 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
}

.operator-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.operator-card address {
  font-style: normal;
}

.operator-card p {
  margin: 0.2rem 0;
}

.notice {
  color: var(--notice);
  background: var(--notice-soft);
  border: 1px solid color-mix(in srgb, var(--notice) 42%, var(--line));
}

.notice strong {
  color: inherit;
}

.inactive-panel {
  background: var(--surface-soft);
  border: 1px dashed var(--line);
}

.inactive-panel h2 {
  margin-top: 0;
}

.data-table {
  width: 100%;
  margin-block: 1rem;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--surface-soft);
}

.legal-footer {
  padding-block: 0 2.5rem;
}

.legal-footer-inner {
  display: flex;
  width: min(840px, calc(100% - 2rem));
  margin-inline: auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-footer-inner p {
  margin: 0;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-footer-links a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 600px) {
  .legal-nav,
  .legal-shell,
  .legal-footer-inner {
    width: min(100% - 1.15rem, 840px);
  }

  .legal-nav {
    min-height: 64px;
  }

  .brand span:last-child {
    display: none;
  }

  .legal-card {
    margin-block: 0.6rem 1rem;
    border-radius: 1rem;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    overflow: hidden;
  }

  .data-table th,
  .data-table td {
    border: 0;
  }
}

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

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