.cookie-notice {
  position: fixed;
  z-index: 90;
  left: max(24px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 390px;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line, #dfe5ef);
  border-radius: 16px;
  background: #fff;
  color: #0d1726;
  box-shadow: 0 12px 48px rgba(13, 23, 38, .18);
}
.cookie-notice h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.cookie-notice p { margin: 0 0 14px; color: #526078; font-size: 13px; line-height: 1.6; }
.cookie-notice a { color: #3d50c9; text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice .cookie-notice__links { font-size: 12px; }
.cookie-notice .cookie-notice__accept { display: inline-flex; width: 100%; margin: 0; min-height: 44px; font: inherit; font-size: 14px; cursor: pointer; }
.cookie-notice a:focus-visible, .cookie-notice button:focus-visible,
.document a:focus-visible, .document button:focus-visible { outline: 3px solid #566cff; outline-offset: 4px; }
.modal-open .cookie-notice { visibility: hidden; }
.document { max-width: 940px; padding-top: 64px; padding-bottom: 72px; overflow-wrap: anywhere; }
.document h1 { margin: 18px 0 22px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15; letter-spacing: -.04em; }
.document h2 { margin: 40px 0 16px; font-size: 23px; line-height: 1.3; letter-spacing: -.02em; }
.document p, .document li { color: #526078; font-size: 15px; line-height: 1.8; }
.document li { margin: 8px 0; }
.document ul, .document ol { padding-left: 24px; }
.document a { color: #3d50c9; text-decoration: underline; text-underline-offset: 3px; }
.document__back { font-size: 14px; }
.document__lead, .document__contents { padding: 20px 24px; background: #f1f4ff; border-radius: 12px; }
.document__lead { border-left: 3px solid #566cff; }
.document__lead p { margin: 0; }
.document__contents { margin-top: 28px; background: #f5f7fa; }
.document__contents ol { margin: 12px 0 0; }
.document__contents li { margin: 4px 0; font-size: 14px; }
.document section { scroll-margin-top: 100px; }
.document__table { overflow-x: auto; margin: 20px 0; border: 1px solid #dfe5ef; border-radius: 10px; }
.document table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.document th, .document td { padding: 14px 16px; border-bottom: 1px solid #dfe5ef; text-align: left; vertical-align: top; }
.document th { background: #f1f4ff; font-weight: 650; }
.document td { color: #526078; }
.document tr:last-child td { border-bottom: 0; }
.document__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 28px; font-size: 14px; }
.document__print { cursor: pointer; border: 1px solid #dfe5ef; border-radius: 8px; padding: 10px 16px; color: #0d1726; background: #fff; font: inherit; }
.document__navigation { margin-top: 48px; padding-top: 24px; border-top: 1px solid #dfe5ef; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.lead-form__privacy { margin: -2px 0 4px; font-size: 12px; line-height: 1.6; color: #657188; }
.lead-form__privacy a { color: #3d50c9; text-decoration: underline; }
@media (max-width: 600px) {
  .cookie-notice { left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); width: 350px; padding: 20px; }
  .document { padding-top: 36px; padding-bottom: 44px; }
  .document h2 { font-size: 21px; }
  .document__lead, .document__contents { padding: 18px; }
}
@media print {
  .header, footer, .cookie-notice, [id^="spellbase-widget-"], .document__actions, .document__back, .document__contents, .document__navigation { display: none !important; }
  .document { max-width: none; padding: 0; }
  .document h1 { font-size: 24pt; }
  .document h2 { font-size: 15pt; break-after: avoid; }
  .document p, .document li, .document td, .document th { color: #000; font-size: 10pt; }
  .document__table { overflow: visible; }
  .document table { min-width: 0; }
  .document a { color: #000; }
}
