/* The existing Home / Products visual language, with a readable legal column. */
:root {
  --legal-ink: #173829;
  --legal-green: #1f663d;
  --legal-soft: #dcf2c9;
  --legal-gutter: clamp(16px, 5vw, 80px);
}
* { box-sizing: border-box; }
body.legal-page { margin: 0; background: #fff; color: #1d2e25; font-family: 'Inter', 'Noto Sans JP', sans-serif; }
a { color: var(--legal-green); overflow-wrap: anywhere; text-underline-offset: 4px; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--legal-green); outline-offset: 4px; }
[data-lang-content], [data-ui-lang] { display: none; }
[data-lang-content].active { display: block; }
html[lang="ja"] [data-ui-lang="ja"], html[lang="en"] [data-ui-lang="en"], html[lang="es"] [data-ui-lang="es"] { display: inline; }
.gb-site-header { background: var(--legal-soft); padding: 16px var(--legal-gutter); }
.gb-site-header__inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.legal-brand { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; color: var(--legal-ink); text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.legal-brand img { display: block; object-fit: contain; }
.legal-nav, .legal-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--legal-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.legal-nav a:hover { text-decoration: underline; }
.legal-header-actions { gap: 12px; }
.legal-language { display: flex; align-items: center; padding: 3px; border: 1.5px solid var(--legal-green); border-radius: 999px; background: #fff; }
.lang-tab { padding: 0 14px; min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--legal-green); font-size: 14px; font-weight: 700; cursor: pointer; }
.lang-tab.active { background: var(--legal-green); color: #fff; }
.legal-contact { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--legal-ink); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.legal-hero { position: relative; overflow: hidden; background: var(--legal-soft); padding: clamp(40px, 6vw, 80px) var(--legal-gutter) clamp(48px, 6vw, 80px); }
.legal-hero::after { content: ''; position: absolute; width: 250px; height: 250px; border: 1px solid #17382926; border-radius: 50%; right: -140px; top: -80px; pointer-events: none; }
.legal-hero__inner { max-width: 1280px; margin: 0 auto; }
.legal-hero h1 { margin: 0 0 24px; color: var(--legal-ink); font-size: clamp(32px, 5vw, 64px); font-weight: 800; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.legal-hero p { margin: 0; color: #3e5147; font-size: 14px; line-height: 1.8; }
.legal-content { max-width: 848px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px clamp(56px, 7vw, 96px); font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.legal-content section { margin: 0 0 36px; padding: 0 0 36px; border-bottom: 1px solid #d9e7d0; }
.legal-content section:last-child { margin-bottom: 0; padding-bottom: 0; border: 0; }
.legal-content h2 { margin: 0 0 16px; color: var(--legal-ink); font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.5; }
.legal-content h3 { margin: 24px 0 12px; color: var(--legal-ink); font-size: 18px; line-height: 1.6; }
.legal-content p { margin: 0; }
.legal-content p + p, .legal-content .mt-2, .legal-content .mt-3 { margin-top: 12px; }
.legal-content ul { margin: 12px 0 0; padding-left: 24px; }
.legal-content li + li { margin-top: 8px; }
.legal-content .text-sm { font-size: 14px; color: #3e5147; }
.legal-content code { background: #edf7e6; padding: 2px 5px; border-radius: 4px; font-size: .9em; }
.legal-content strong { font-weight: 700; }
.legal-footer { padding: 40px var(--legal-gutter); background: var(--legal-ink); color: var(--legal-soft); }
.legal-footer__inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 32px; }
.legal-footer a { color: var(--legal-soft); }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.legal-footer nav a:hover { text-decoration: underline; }
.legal-footer p { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.8; }
@media (max-width: 480px) {
  .legal-content { padding-left: 20px; padding-right: 20px; }
  .legal-language { max-width: 100%; }
  .lang-tab { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 360px) {
  .legal-hero h1 { font-size: 28px; }
}
@media print {
  .gb-site-header, .legal-footer { display: none; }
  .legal-hero { padding: 20px 0; background: #fff; }
  .legal-hero::after { display: none; }
  .legal-content { max-width: none; padding: 20px 0; }
}
