/* Shared style for SEOAI compliance & policy pages.
   Minimal, accessible, prints cleanly for legal review. */
:root {
  --ink: #0f1424;
  --ink-2: #3b4254;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-2: #f7f8fb;
  --brand: #4a67ff;
  --ok: #16a34a;
  --warn: #d97706;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
               "Noto Sans JP", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 32px 24px 64px; }
header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
header.site .brand {
  font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
header.site .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
header.site nav a {
  color: var(--ink-2); text-decoration: none; margin-left: 16px; font-size: 14px;
}
header.site nav a:hover { color: var(--brand); }

.lang-toggle {
  display: inline-flex; gap: 4px; background: var(--bg-2); border-radius: 8px;
  padding: 2px; font-size: 13px;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 6px;
  cursor: pointer; color: var(--ink-2);
}
.lang-toggle button.active { background: var(--ink); color: #fff; }

h1 { font-size: 32px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 36px 0 12px; }
h3 { font-size: 17px; margin: 24px 0 8px; }
p, li { color: var(--ink-2); }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.meta { color: #6b7280; font-size: 14px; margin-bottom: 28px; }
.card {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px;
  background: var(--bg-2); margin: 18px 0;
}
.card.ok    { border-color: #bbf7d0; background: #f0fdf4; }
.card.warn  { border-color: #fde68a; background: #fffbeb; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
th { background: var(--bg-2); font-weight: 600; color: var(--ink); }
code { background: var(--bg-2); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
a { color: var(--brand); }
footer.site {
  border-top: 1px solid var(--line); padding: 24px;
  color: #6b7280; font-size: 13px; text-align: center;
}
/* Language sections live inside <main>. Scope the show/hide to .wrap
   so the body element itself (which also carries the lang-* class as
   a switch) never gets display:none and hide the whole page. */
.wrap > .lang-en, .wrap > .lang-ja { display: none; }
body.lang-en .wrap > .lang-en { display: block; }
body.lang-ja .wrap > .lang-ja { display: block; }

/* Opt-out form */
form.optout { display: grid; gap: 14px; margin: 24px 0; }
form.optout label { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
form.optout input, form.optout select, form.optout textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; color: var(--ink); background: #fff;
}
form.optout textarea { min-height: 100px; resize: vertical; }
form.optout button {
  background: var(--brand); color: #fff; border: 0; padding: 12px 24px;
  font-size: 16px; font-weight: 600; border-radius: 8px; cursor: pointer;
}
form.optout button:disabled { opacity: 0.6; cursor: not-allowed; }
.result {
  display: none; padding: 16px; border-radius: 8px; margin-top: 18px;
  font-size: 14px; white-space: pre-wrap; word-break: break-word;
}
.result.ok    { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.result.err   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.result.show  { display: block; }
@media (max-width: 600px) {
  h1 { font-size: 26px; }
  header.site nav { font-size: 13px; }
}
