:root {
  color-scheme: light;
  --primary: #1c1c1e;
  --secondary: #3c3c43;
  --tertiary: #6d6d72;
  --disabled: #aeaeb2;
  --background: #ffffff;
  --page-inset: 16px;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--secondary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Noto Sans JP", "Noto Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--tertiary); outline-offset: 3px; }

.legal-shell {
  width: min(100%, 680px);
  min-height: 100svh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) var(--page-inset) calc(40px + env(safe-area-inset-bottom));
}

.legal-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back { color: var(--primary); }
.languages { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; color: var(--disabled); font-size: 13px; }
.languages a[aria-current="page"] { color: var(--primary); }

.legal-document { padding-top: 20px; }
.legal-document h1 { margin: 0; color: var(--primary); font-size: 24px; line-height: 1.3; font-weight: 600; }
.effective { margin: 8px 0 32px; color: var(--tertiary); font-size: 13px; }
.legal-section { margin-top: 32px; }
.legal-section h2 { margin: 0 0 12px; color: var(--primary); font-size: 17px; line-height: 1.45; font-weight: 600; }
.legal-section p { margin: 0 0 12px; white-space: pre-wrap; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-note { color: var(--tertiary); font-size: 13px; }

.support-form-shell { padding-top: 20px; }
.support-form-shell h1 { margin: 0 0 24px; color: var(--primary); font-size: 24px; line-height: 1.3; font-weight: 600; }
.support-form-shell form { display: grid; gap: 12px; }
.support-form-shell textarea {
  width: 100%;
  min-height: 168px;
  resize: vertical;
  border: 1px solid #c7c7cc;
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  padding: 13px 14px;
  font: inherit;
  line-height: 1.5;
}
.support-form-shell textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.support-form-shell button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
}
.support-form-shell button:disabled { opacity: .45; }
.support-result { min-height: 26px; margin: 20px 0 0; color: var(--primary); white-space: pre-wrap; }
.support-status-link { display: inline-block; margin-top: 12px; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.support-status-link[hidden] { display: none; }
.support-privacy { display: inline-block; margin-top: 32px; color: var(--tertiary); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
