:root {
  --gold: #f4c84d;
  --deep-gold: #a66b08;
  --wine: #3d071c;
  --magenta: #f00063;
  --cream: #fffaf0;
  --ink: #24141a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1px, transparent 1.5px) 0 0 / 8px 8px,
    linear-gradient(145deg, #1b0711, var(--wine) 48%, #210814);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
}

.legal-header {
  padding: 18px 16px 12px;
  border-bottom: 5px solid var(--gold);
  background: #fff;
  text-align: center;
}
.legal-header a { display: inline-block; }
.legal-header img { display: block; width: min(390px, 88vw); height: auto; }

.legal-content { padding: 50px 16px 76px; }
.page-container {
  position: relative;
  width: min(850px, 100%);
  margin: 0 auto;
  padding: 48px clamp(20px, 6vw, 66px) 58px;
  border: 5px solid var(--gold);
  outline: 1px solid #fff3b4;
  outline-offset: -10px;
  background: var(--cream);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.page-title {
  margin: 0 0 38px;
  color: var(--wine);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}
.page-title::after {
  display: block;
  width: 120px;
  height: 5px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--deep-gold), #ffe98c, var(--deep-gold));
  content: "";
}
.page-section + .page-section { margin-top: 34px; }
.page-section h2 {
  margin: 0 0 12px;
  padding: 8px 14px;
  border-left: 6px solid var(--magenta);
  border-bottom: 1px solid #dec991;
  color: var(--wine);
  font-size: 1.12rem;
  line-height: 1.55;
}
.page-section p { margin: 0; }
.page-section p + p { margin-top: 14px; }
.page-section ul { margin: 10px 0 0; padding-left: 1.45em; }
.page-section li + li { margin-top: 8px; }
.page-section li::marker { color: var(--magenta); }

.law-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.law-table th, .law-table td { padding: 16px; border: 1px solid #c8aa62; text-align: left; vertical-align: top; }
.law-table th { width: 30%; background: #f9e9b7; color: var(--wine); font-weight: 900; }

.legal-footer { padding: 34px 20px; border-top: 5px solid var(--gold); background: #11070b; color: #fff; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 22px; }
.legal-links a { color: var(--gold); font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.legal-links a:hover { color: #fff; }
.footer-disclaimer { max-width: 850px; margin: 0 auto 14px; color: rgba(255,255,255,.62); font-size: 0.7rem; line-height: 1.8; }
.copy { margin: 0; color: rgba(255,255,255,.8); font-size: 0.75rem; text-align: center; }

@media (max-width: 600px) {
  .legal-content { padding: 28px 10px 54px; }
  .page-container { padding: 34px 18px 42px; border-width: 4px; outline-offset: -8px; }
  .page-section h2 { font-size: 1.02rem; }
  .law-table th, .law-table td { display: block; width: 100%; }
  .law-table th { border-bottom: 0; }
  .law-table td { margin-bottom: 10px; }
}
