:root {
  color-scheme: light;
  --red: #e42127;
  --yellow: #ffd51f;
  --green: #198649;
  --ink: #171717;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
}

.notice {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 18px 28px;
  text-align: center;
}

.agency-heading p, .agency-heading h1 { margin: 0; }
.agency-heading p { font-size: clamp(17px, 4.6vw, 23px); line-height: 1.15; }
.agency-heading h1 {
  margin-top: 3px;
  font-size: clamp(17px, 4.6vw, 23px);
  line-height: 1.05;
  font-weight: 700;
}

.emblem { width: clamp(120px, 34vw, 170px); margin: 10px auto 4px; }
.emblem img { display: block; width: 100%; height: auto; }

.message h2 {
  margin: -4px 0 5px;
  font-size: clamp(21px, 5.8vw, 29px);
  line-height: 1;
}

.message p, .message address {
  margin: 0 auto;
  max-width: 510px;
  font-size: clamp(17px, 4.7vw, 23px);
  line-height: 1.08;
  font-style: normal;
}
.message p + p { margin-top: 6px; }

.security-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 7px;
  border: 1px solid #a7a7a7;
  color: #205a42;
  background: #f8f8f8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}
.security-mark svg { width: 22px; height: 27px; }
.security-mark svg path:first-child { fill: none; stroke: #d21f2b; stroke-width: 3; }
.security-mark svg path:last-child { fill: none; stroke: #205a42; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

footer {
  margin: 34px auto 0;
  max-width: 430px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  color: #666;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.4;
}

@media (min-width: 700px) {
  .notice { min-height: 920px; background: #fff; }
}

@media (max-width: 380px) {
  .notice { padding-inline: 10px; }
  .message p, .message address { font-size: 17px; }
}

@media print {
  body { background: #fff; }
  .notice { width: 100%; box-shadow: none; }
}
