
.aa-policy-page { scroll-behavior: auto; }
.aa-legal-hero > .aa-wrap,
.aa-wrap.aa-legal,
.aa-wrap.aa-legal__version { max-width: 800px; padding-inline: 24px; }

.aa-legal-hero { padding-block: calc(var(--aa-header-h) + 56px) 0; background: #fff; }
.aa-legal-hero__head { padding-bottom: 28px; border-bottom: 1px solid #e5e8eb; }
.aa-legal-hero__title { font-size: 34px; font-weight: 750; line-height: 1.4; letter-spacing: -.04em; color: #1B2140; }
.aa-legal__version-menu { margin-top: 24px; }
.aa-legal__version-label { display: inline-flex; align-items: center; gap: 16px; min-height: 50px; padding: 11px 18px; border: 1px solid #d9dfe5; border-radius: 12px; cursor: pointer; list-style: none; font-size: 16px; line-height: 1.6; color: #4A5270; }
.aa-legal__version-label::-webkit-details-marker { display: none; }
.aa-legal__version-label::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.aa-legal__version-menu[open] > .aa-legal__version-label::after { transform: rotate(225deg) translate(-2px, -2px); }
.aa-legal__version-panel { margin-top: 16px; padding: 20px; border: 1px solid #e5e8eb; border-radius: 12px; }
.aa-legal__version-panel > .aa-legal-hero__dates { margin-top: 0; }
.aa-legal__version-panel > .aa-legal-hero__lead { margin-top: 18px; }
.aa-legal__version-panel > .aa-legal__toc { margin-top: 20px; }
.aa-legal-hero__dates { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }
.aa-legal-hero__date { display: inline-flex; gap: 8px; font-size: 13px; line-height: 1.7; color: #4A5270; }
.aa-legal-hero__date dt,
.aa-legal-hero__date dd { font-weight: 500; }
.aa-legal-hero__date .aa-legal__pending { padding: 0; background: transparent; color: inherit; font-weight: 500; }
.aa-legal-hero__lead { margin-top: 28px; font-size: 15px; line-height: 1.85; color: #4A5270; }
.aa-legal__draft { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 16px; font-size: 13px; line-height: 1.75; color: #4A5270; }
.aa-legal__draft strong { font-weight: 650; }

.aa-legal { padding-block: 0 72px; }
.aa-legal__layout { display: block; }
.aa-legal__toc { border-block: 1px solid #e5e8eb; }
.aa-legal__toc-title { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 650; color: #4A5270; }
.aa-legal__toc-title::-webkit-details-marker { display: none; }
.aa-legal__toc-title::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.aa-legal__toc[open] .aa-legal__toc-title::after { transform: rotate(225deg) translate(-2px, -2px); }
.aa-legal__toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding-bottom: 16px; }
.aa-legal__toc-link { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding-block: 10px; font-size: 14px; line-height: 1.65; color: #4A5270; }
.aa-legal__toc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.aa-legal__toc-no { flex: none; min-width: 44px; color: #4A5270; font-variant-numeric: tabular-nums; }
.aa-legal__version-label:focus-visible,
.aa-legal__toc-title:focus-visible,
.aa-legal__toc-link:focus-visible { outline: 2px solid #1B2140; outline-offset: 3px; }

.aa-legal__body { min-width: 0; font-size: 15px; line-height: 1.85; color: #4A5270; overflow-wrap: anywhere; }
.aa-legal__sec { position: relative; padding-top: 44px; scroll-margin-top: calc(var(--aa-header-h) + 16px); }
.aa-legal__sec > * + * { margin-top: 16px; }
.aa-legal__body p + p { margin-top: 12px; }
.aa-legal__h { display: flex; align-items: baseline; gap: 6px; font-size: 19px; font-weight: 700; line-height: 1.65; letter-spacing: -.025em; color: #1B2140; }
.aa-legal__no { flex: none; font: inherit; font-variant-numeric: tabular-nums; }
.aa-legal__body strong { font-weight: 700; color: #1B2140; }
.aa-legal__list { display: grid; gap: 12px; padding-left: 1.3em; list-style: disc; }
.aa-legal__steps { display: grid; gap: 12px; padding-left: 1.65em; list-style: decimal; }
.aa-legal__list > li,
.aa-legal__steps > li { padding-left: 4px; }
.aa-legal__list > li::marker,
.aa-legal__steps > li::marker { color: #4A5270; }
.aa-legal__link { color: #4F3FD0; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.aa-legal__link:hover { text-decoration-thickness: 2px; }
.aa-legal__pending { padding: 1px 4px; border-radius: 3px; background: #f2f4f6; color: #4A5270; font-weight: 650; }
.aa-legal__anchor { display: block; height: 0; scroll-margin-top: calc(var(--aa-header-h) + 16px); }


.aa-legal__table-hint { font-size: 13px; line-height: 1.7; color: #4A5270; }
.aa-legal__scroll { position: relative; overflow-x: auto; border: 1px solid #e5e8eb; -webkit-overflow-scrolling: touch; }
.aa-legal__scroll:focus-visible { outline: 2px solid #1B2140; outline-offset: 3px; }
.aa-legal__table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.aa-legal__table--wide { min-width: 760px; }
.aa-legal__table--xwide { min-width: 1080px; }
.aa-legal__table th,
.aa-legal__table td { padding: 14px 16px; border-bottom: 1px solid #e5e8eb; text-align: left; vertical-align: top; }
.aa-legal__table tbody tr:last-child > * { border-bottom: 0; }
.aa-legal__table thead th { background: #f9fafb; font-size: 13px; font-weight: 650; color: #1B2140; white-space: nowrap; }
.aa-legal__table tbody th { width: 17%; font-weight: 650; color: #1B2140; }
.aa-legal__table td { color: #4A5270; }
.aa-legal__version { padding-block: 0 64px; font-size: 13px; line-height: 1.8; color: #4A5270; }
.aa-legal__version p { margin-top: 8px; }

@media (max-width: 600px) {
  .aa-legal-hero { padding-top: calc(var(--aa-header-h) + 32px); }
  .aa-legal-hero__title { font-size: 28px; }
  .aa-legal__version-panel { padding: 16px; }
  .aa-legal-hero__dates { gap: 6px 20px; margin-top: 16px; }
  .aa-legal-hero__lead { margin-top: 24px; }
  .aa-legal__toc-list { grid-template-columns: minmax(0, 1fr); }
  .aa-legal__sec { padding-top: 36px; }
  .aa-legal__h { font-size: 18px; }
  .aa-legal { padding-bottom: 56px; }
  .aa-legal__version { padding-bottom: 48px; }
}


.aa-legal__notice { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--aa-primary-soft, #CFC8F7); border-radius: 16px; background: var(--aa-tint-lilac, #F5EFFF); font-size: 15px; line-height: 1.7; color: var(--aa-ink, #1B2140); }
.aa-legal__notice strong { display: block; margin-bottom: 2px; font-weight: 800; color: var(--aa-primary-deep, #4F3FD0); }
.aa-legal__notice a { font-weight: 700; color: var(--aa-primary-deep, #4F3FD0); text-decoration: underline; text-underline-offset: 3px; }
