:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --text: #1f2420;
  --muted: #66706a;
  --line: #d9dfda;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --secondary: #334155;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  line-height: 1.7;
}

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

.shell,
.home-shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 56px 0;
}

.page-header,
.hero {
  max-width: 680px;
  margin-bottom: 32px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
}

p {
  margin: 0;
  color: var(--muted);
}

.apps,
.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.operator-card,
.app-card,
.document-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.operator-card {
  min-height: 0;
  margin-bottom: 16px;
  gap: 16px;
}

.app-card h2,
.document-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.operator-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.operator-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.operator-label {
  font-size: 0.85rem;
}

.operator-name {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.links,
.language-actions,
.card-links,
.footer-links,
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button,
.nav-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.button.primary,
.nav-actions a[aria-current="true"] {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.site-header,
.site-footer {
  width: min(100% - 32px, 880px);
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px;
}

.brand {
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.nav-actions,
.footer-links {
  margin-top: 0;
}

.eyebrow,
.card-kicker {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  max-width: 640px;
  color: var(--secondary);
  font-size: 1.08rem;
}

.card-links {
  flex-direction: column;
  align-items: flex-start;
}

.doc-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 0;
}

.doc-link {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.doc-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.legal-page {
  width: min(100% - 32px, 880px);
  margin-right: auto;
  margin-left: auto;
  padding-bottom: 32px;
}

.legal-page .site-header,
.legal-page .site-footer {
  width: 100%;
}

.legal-page > strong:first-of-type {
  display: block;
  margin-top: 22px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
}

.legal-page p,
.legal-page ul,
.legal-page div {
  font-size: 17px;
}

.legal-page ul {
  padding-left: 1.3em;
}

.legal-page li + li {
  margin-top: 0.35em;
}

.legal-page br + strong,
.legal-page div > strong {
  display: block;
  margin-top: 28px;
  font-size: 1.08rem;
}

.legal-page hr {
  width: 100%;
  margin: 44px 0 20px;
  border: 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  margin-top: 48px;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 12px;
}

.footer-links a {
  color: var(--secondary);
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
  }
}
