/* Shared CSS for legal pages — matches ugokasu.jp LP design */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4f1ea;
  --bg2: #ebe7dd;
  --paper: #faf8f3;
  --ink: #0a0a0a;
  --ink2: #2a2a2a;
  --muted: #6a6a6a;
  --red: #d32525;
  --yellow: #f5d142;
  --ff-display: 'Anton', sans-serif;
  --ff-body: 'Noto Sans JP', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-feature-settings: "palt";
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

/* Header (matches LP) */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.logo {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1;
  text-decoration: none; color: var(--ink);
}
.logo-name {
  font-family: var(--ff-display);
  font-size: 30px; letter-spacing: -1px;
  text-transform: lowercase; line-height: 0.95;
}
.logo-tagline {
  font-family: var(--ff-mono);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--muted); margin-top: 4px; white-space: nowrap;
}
.logo-tagline .accent { color: var(--red); font-weight: 700; }

.btn-back {
  background: var(--ink); color: var(--bg);
  padding: 10px 20px; font-size: 13px; font-weight: 700;
  text-decoration: none; border: 2px solid var(--ink);
  transition: all .15s; font-family: var(--ff-body);
}
.btn-back:hover { background: var(--bg); color: var(--ink); }

/* Page hero */
.page-hero {
  padding: 60px 32px 40px;
  border-bottom: 2px solid var(--ink);
  max-width: 1100px;
  margin: 0 auto;
}
.page-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.page-tag::after {
  content: '';
  flex: 1; height: 1.5px; background: var(--ink);
}
.page-title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.page-sub {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--ff-mono);
  letter-spacing: 0.5px;
}

/* Content */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}
.content section {
  margin-bottom: 56px;
}
.content h2 {
  font-family: var(--ff-display);
  font-size: 28px;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: baseline; gap: 12px;
}
.content h2::before {
  content: attr(data-num);
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
}
.content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.content p {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 14px;
  color: var(--ink2);
}
.content ul, .content ol {
  font-size: 14px;
  line-height: 2;
  margin: 12px 0 14px 0;
  padding-left: 24px;
  color: var(--ink2);
}
.content li {
  margin-bottom: 4px;
}
.content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content a:hover { color: var(--ink); }
.content strong {
  font-weight: 700;
  color: var(--ink);
}

/* Definition list / table */
.def-table {
  width: 100%;
  border: 2px solid var(--ink);
  border-collapse: collapse;
  margin: 16px 0 24px;
  background: var(--paper);
}
.def-table th, .def-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  line-height: 1.8;
  border-bottom: 1.5px solid var(--ink);
  vertical-align: top;
}
.def-table th {
  width: 30%;
  background: var(--bg2);
  font-weight: 700;
  border-right: 1.5px solid var(--ink);
}
.def-table tr:last-child th, .def-table tr:last-child td {
  border-bottom: 0;
}

/* Info note (yellow box) */
.note {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 18px 22px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.9;
}
.note strong { display: block; margin-bottom: 6px; font-size: 11px; font-family: var(--ff-mono); letter-spacing: 1px; }

/* Footer */
footer {
  padding: 36px 32px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--ff-mono);
  font-size: 11px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
footer .footer-left { color: rgba(244,241,234,0.6); }
footer .footer-right a { color: var(--bg); text-decoration: none; margin-left: 24px; }
footer .footer-right a:hover { color: var(--yellow); }

/* Responsive */
@media (max-width: 600px) {
  header { padding: 16px 20px; }
  .page-hero { padding: 40px 20px 30px; }
  .content { padding: 40px 20px 60px; }
  .content section { margin-bottom: 40px; }
  .def-table th, .def-table td { padding: 10px 12px; font-size: 12px; }
  .def-table th { width: 35%; }
  footer { flex-direction: column; text-align: center; }
  footer .footer-right a { margin: 0 12px; }
}
