:root {
  --bg: #f7f7fb;
  --text: #1d1d23;
  --muted: #5c5d68;
  --surface: #ffffff;
  --border: #e6e7ef;
  --brand: #140a26;
  --accent: #dc2626;
  --shadow: 0 10px 25px rgba(20, 10, 38, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "SF Pro Text", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(
      1200px 400px at 0% -10%,
      rgba(220, 38, 38, 0.08),
      transparent
    ),
    radial-gradient(
      1000px 300px at 100% -20%,
      rgba(20, 10, 38, 0.08),
      transparent
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--brand);
}

.container {
  width: min(100%, 1000px);
  margin-inline: auto;
  padding-inline: 20px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-main {
  color: var(--brand);
  font-size: 1.8rem;
}

.brand-accent {
  color: var(--accent);
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--brand);
}

.hero {
  padding: 72px 0 42px;
}

.tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 10, 38, 0.07);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--brand);
  letter-spacing: -0.03em;
}

.lead {
  margin-top: 14px;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.actions {
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.section {
  padding: 10px 0 52px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h2 {
  color: var(--brand);
  margin-bottom: 10px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.policy-layout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.policy-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.policy-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.policy-callout {
  border: 1px solid rgba(20, 10, 38, 0.08);
  background: linear-gradient(
    135deg,
    rgba(20, 10, 38, 0.05),
    rgba(220, 38, 38, 0.05)
  );
  border-radius: 12px;
  padding: 12px 14px;
}

.policy-callout p {
  margin: 0;
  font-weight: 600;
  color: var(--brand);
}

.policy-toc {
  margin: 16px 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfbff;
  padding: 12px;
}

.policy-toc h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--brand);
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.toc-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 600;
}

.policy-layout section {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
}

.policy-layout h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.policy-layout h2 {
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--brand);
}

.policy-layout h3 {
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.policy-layout p {
  margin-top: 0;
  margin-bottom: 10px;
}

.policy-layout ul {
  margin-top: 6px;
  margin-bottom: 10px;
}

.policy-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.policy-table thead th {
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f4f5fb;
}

.policy-table th,
.policy-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
}

.policy-table tbody tr:last-child td {
  border-bottom: 0;
}

.policy-badge {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  line-height: 1;
}

.policy-badge-success {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.policy-badge-neutral {
  background: rgba(92, 93, 104, 0.14);
  color: #3f3f46;
}

.meta {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 600;
}

.note {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.08);
  color: #9f1239;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    min-height: 62px;
  }

  .brand-main,
  .brand-accent {
    font-size: 1.55rem;
  }
}
