:root {
  --page-bg: #d4d4d4;
  --panel-bg: #ffffff;
  --text: #000000;
  --muted: #555555;
  --line: #b9b9b9;
  --soft: #f2f2f2;
  --button: #111111;
  --button-text: #ffffff;
  --max-width: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 14pt;
  line-height: 1.58;
}

a { color: #000000; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { text-decoration-thickness: 2px; }

.site-header {
  background: var(--panel-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.header-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 22px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  margin: 0;
  font-size: 25pt;
  line-height: 1.1;
  letter-spacing: -.5px;
}

.brand a { text-decoration: none; }

.header-link {
  font-size: 11.5pt;
  white-space: nowrap;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 30px auto;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0,0,0,.12);
  padding: 38px 46px;
}

h1 {
  font-size: 27pt;
  line-height: 1.18;
  margin: 0 0 8px;
}

h2 {
  font-size: 18pt;
  line-height: 1.25;
  margin: 34px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 14.5pt;
  margin: 24px 0 8px;
}

p { margin: 10px 0 16px; }
ul, ol { margin: 10px 0 18px 26px; padding: 0; }
li { margin: 7px 0; }

.updated {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 11.5pt;
}

.notice,
.summary-box,
.contact-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 5px solid #222222;
  border-radius: 5px;
  padding: 16px 18px;
  margin: 20px 0;
}

.notice strong,
.summary-box strong { display: inline-block; margin-bottom: 3px; }

.table-wrap { overflow-x: auto; margin: 20px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 12pt;
}

th, td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th { background: #ececec; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

.button {
  display: inline-block;
  background: var(--button);
  color: var(--button-text);
  padding: 11px 17px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 12pt;
}

.button.secondary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.legal-card {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 6px;
  padding: 18px;
}

.legal-card h2 {
  border: 0;
  padding: 0;
  margin: 0 0 7px;
  font-size: 16pt;
}

.legal-card p { font-size: 11.5pt; margin: 0 0 12px; color: #333333; }

.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto 30px;
  text-align: center;
  color: #333333;
  font-size: 10.5pt;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.small { font-size: 11pt; color: var(--muted); }

@media (max-width: 720px) {
  body { font-size: 12.5pt; }
  .header-inner { align-items: flex-start; flex-direction: column; }
  .page-shell { padding: 27px 22px; margin-top: 20px; }
  h1 { font-size: 23pt; }
  h2 { font-size: 16.5pt; }
  .legal-grid { grid-template-columns: 1fr; }
}

@media print {
  body { background: #ffffff; }
  .site-header, .site-footer, .button-row { display: none; }
  .page-shell { border: 0; box-shadow: none; width: 100%; margin: 0; padding: 0; }
}
