:root {
  --brand: #025bff;
  --brand-dark: #0148cc;
  --text: #1a1f2e;
  --text-muted: #5c6578;
  --surface: #ffffff;
  --surface-alt: #f4f7fc;
  --border: #e2e8f3;
  --accent-soft: #e8f0ff;
  --shadow: 0 12px 40px rgba(2, 91, 255, 0.08);
  --radius: 14px;
  --max-width: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
  min-height: 100vh;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 1.5rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.meta a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.meta a:hover {
  text-decoration: underline;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.legal-nav a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--accent-soft);
  text-decoration: none;
  border: 1px solid #c8dcff;
}

.legal-nav a:hover {
  background: #dce8ff;
}

.legal-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.card a {
  color: var(--brand);
  font-weight: 500;
}

.card a:hover {
  text-decoration: underline;
}

.subsection {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.subsection:first-of-type {
  padding-top: 0;
}

.subsection:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.subsection h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--brand-dark);
}

.subsection p {
  margin: 0;
}

.subsection .note {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.summary-list {
  margin: 0;
  padding-left: 1.35rem;
}

.summary-list li {
  margin-bottom: 0.55rem;
}

.summary-list li:last-child {
  margin-bottom: 0;
}

.permission-list {
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.45rem;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.intro-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.link-cards {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
}

.link-card {
  display: block;
  padding: 1.15rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  border-color: #c8dcff;
  box-shadow: 0 4px 16px rgba(2, 91, 255, 0.1);
}

.link-card-title {
  display: block;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}

.link-card-desc {
  display: block;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
}

.card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 1rem;
  color: var(--text);
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul,
.card ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.card li {
  margin-bottom: 0.45rem;
}

.card li:last-child {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 0.85rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.highlight-box {
  background: var(--accent-soft);
  border: 1px solid #c8dcff;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1rem 0 0;
}

.highlight-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand-dark);
}

.email-template {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.email-template dt {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.65rem;
}

.email-template dt:first-child {
  margin-top: 0;
}

.email-template dd {
  margin: 0.2rem 0 0;
  color: var(--text);
}

.footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
}

.footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .page {
    padding: 1.25rem 1rem 3rem;
  }

  .header,
  .card {
    padding: 1.35rem 1.25rem;
  }
}
