:root {
  color-scheme: light;
  --ink: #17181c;
  --muted: #5c6370;
  --surface: #ffffff;
  --page: #f5f6f3;
  --line: #dfe3df;
  --accent: #b4172a;
  --header: #101217;
  --header-muted: #c8ced8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
.site-header { background: var(--header); color: #fff; border-bottom: 4px solid var(--accent); }
.site-header-inner { max-width: 1180px; margin: 0 auto; padding: 18px 20px 16px; }
.brand { display: inline-block; color: #fff; font-size: 1.35rem; font-weight: 900; text-decoration: none; margin-bottom: 14px; }
.site-nav, .related-links, .toc { display: flex; flex-wrap: wrap; gap: 8px; }
.site-nav a, .related-links a, .toc a {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  color: var(--header-muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
  padding: 8px 10px;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"], .related-links a:hover, .related-links a[aria-current="page"] {
  background: rgba(180,23,42,0.24);
  color: #fff;
  border-color: rgba(255,255,255,0.34);
}
.page-shell { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; max-width: 1180px; margin: 0 auto; padding: 28px 20px 42px; }
.policy, .related {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(16,18,23,0.08);
  padding: 26px;
}
.related { align-self: start; position: sticky; top: 18px; }
.eyebrow, .updated, .meta-row {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.02; margin: 0.3em 0; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.18; margin: 0 0 0.65rem; }
.summary { color: #383f4b; font-size: 1.04rem; max-width: 78ch; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.meta-row span { background: #f2f3f0; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; }
.toc { margin: 20px 0 26px; }
.toc a { border-color: var(--line); color: #343943; background: #f7f8f5; }
.policy-section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.policy-body p, .policy-body li { color: #2b3038; font-size: 1rem; }
.policy-body p { margin: 0 0 1rem; max-width: 78ch; }
.policy-body code { background: #f1f1ee; border-radius: 5px; padding: 0.1em 0.3em; }
.notice-box { background: #fff5e8; border: 1px solid #edc88e; border-radius: 10px; color: #3d3020; margin: 20px 0; padding: 14px; }
.dmca-form { display: grid; gap: 22px; margin-top: 22px; }
.form-section { border-top: 1px solid var(--line); display: grid; gap: 12px; padding-top: 20px; }
.dmca-form label { color: #2b3038; display: grid; font-size: 0.9rem; font-weight: 760; gap: 6px; }
.field-hint { color: var(--muted); font-size: 0.88rem; font-weight: 650; margin: -2px 0 0; }
.dmca-form input, .dmca-form textarea, .dmca-form select {
  background: #fbfcfa;
  border: 1px solid #cfd5cf;
  border-radius: 8px;
  color: #17181c;
  font: inherit;
  font-weight: 600;
  padding: 10px 11px;
  width: 100%;
}
.check-row { align-items: flex-start; display: flex !important; gap: 10px !important; line-height: 1.45; }
.check-row input { margin-top: 0.25em; width: auto; }
.form-actions { display: grid; gap: 10px; }
.form-actions button {
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 13px 18px;
}
.form-actions button:disabled { cursor: not-allowed; opacity: 0.6; }
#dmca-status { font-weight: 800; margin: 0; }
#dmca-status[data-tone="success"] { color: #167340; }
#dmca-status[data-tone="error"] { color: #a51224; }
.related h2 { margin-top: 0; }
.site-footer { color: var(--muted); max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; }
@media (max-width: 840px) {
  .page-shell { display: block; padding: 18px 14px 32px; }
  .policy, .related { border-radius: 14px; padding: 18px; }
  .related { margin-top: 18px; position: static; }
  .site-header-inner { padding: 16px 14px; }
}
