.content-page { min-height: 100vh; display: flex; flex-direction: column; }
.content-page main { flex: 1; }
.content-hero { padding: 58px 0 34px; border-bottom: 1px solid var(--aiwa-line); background: #fff; }
.content-shell { width: min(820px, calc(100% - 32px)); margin: 0 auto; }
.content-kicker { color: var(--aiwa-brand-dark); font-size: 12px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.content-hero h1 { margin: 9px 0 10px; font-size: clamp(2.25rem, 5vw, 3.8rem); font-weight: 760; line-height: 1.04; letter-spacing: -0.05em; }
.content-hero p { max-width: 680px; margin: 0; color: var(--aiwa-muted); font-size: 16px; line-height: 1.7; }
.content-body { padding: 48px 0 70px; }
.content-body section + section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--aiwa-line); }
.content-body h2 { margin: 0 0 10px; font-size: 23px; letter-spacing: -0.03em; }
.content-body h3 { margin: 24px 0 7px; font-size: 16px; }
.content-body p, .content-body li { color: var(--aiwa-text); line-height: 1.75; }
.content-body p { margin: 0 0 12px; }
.content-body ul, .content-body ol { margin: 10px 0 0; padding-left: 22px; }
.content-body li + li { margin-top: 7px; }
.content-body a { color: var(--aiwa-brand-dark); font-weight: 650; text-underline-offset: 3px; }
.content-callout { margin: 22px 0; padding: 16px; border: 1px solid #b9ddc4; border-radius: 12px; background: var(--aiwa-brand-soft); }
.content-callout p:last-child { margin-bottom: 0; }
.contact-card { display: grid; gap: 7px; padding: 20px; border: 1px solid var(--aiwa-line); border-radius: 14px; background: #fff; }
.contact-card strong { font-size: 17px; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.help-card { padding: 18px; border: 1px solid var(--aiwa-line); border-radius: 14px; background: #fff; }
.help-card h2 { font-size: 17px; }
.help-card p { margin: 0; color: var(--aiwa-muted); font-size: 13px; }
.not-found { min-height: 60vh; display: grid; place-items: center; padding: 50px 16px; text-align: center; }
.not-found strong { display: block; color: var(--aiwa-brand); font-size: clamp(4rem, 15vw, 8rem); line-height: 1; letter-spacing: -0.07em; }
.not-found h1 { margin: 12px 0 8px; font-size: 32px; }
.not-found p { max-width: 520px; margin: 0 auto 22px; color: var(--aiwa-muted); line-height: 1.7; }
@media (max-width: 620px) { .content-hero { padding-top: 40px; } .content-body { padding-top: 36px; } .help-grid { grid-template-columns: 1fr; } }

/* ===== Content v2 (20260823L1): legal layout, TOC, FAQ, dark mode ===== */
.content-hero { background: radial-gradient(600px 260px at 15% -20%, #eaf7ee 0%, rgba(234,247,238,0) 70%), #fff; }
.content-hero h1 { font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 800; letter-spacing: -0.035em; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.legal-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--aiwa-line); border-radius: 999px; background: #fff; color: var(--aiwa-muted); font-size: 12px; font-weight: 650; }
.legal-meta img { width: 13px; height: 13px; opacity: .7; }

/* In-short summary cards */
.in-short { margin: 0 0 34px; padding: 20px 22px; border: 1px solid #cfe6d8; border-radius: 16px; background: var(--aiwa-brand-soft); }
.in-short h2 { margin: 0 0 10px !important; font-size: 15px !important; letter-spacing: .03em; text-transform: uppercase; color: var(--aiwa-brand-dark); }
.in-short ul { margin: 0; padding-left: 20px; }
.in-short li { font-size: 14px; line-height: 1.65; }

/* Legal two-column layout with sticky TOC */
.legal-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 80px; }
.legal-toc { position: sticky; top: 84px; align-self: start; padding: 16px 14px; border: 1px solid var(--aiwa-line); border-radius: 14px; background: #fff; }
.legal-toc strong { display: block; margin-bottom: 8px; padding-left: 10px; color: var(--aiwa-muted); font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.legal-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--aiwa-text); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.legal-toc a:hover { background: var(--aiwa-bg); color: var(--aiwa-ink); }
.legal-main section { scroll-margin-top: 84px; }
.legal-main section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--aiwa-line); }
.legal-main h2 { margin: 0 0 10px; font-size: 21px; font-weight: 780; letter-spacing: -0.02em; }
.legal-main h3 { margin: 20px 0 7px; font-size: 15.5px; font-weight: 750; }
.legal-main p, .legal-main li { color: var(--aiwa-text); font-size: 14.5px; line-height: 1.75; }
.legal-main p { margin: 0 0 12px; }
.legal-main ul, .legal-main ol { margin: 8px 0 12px; padding-left: 22px; }
.legal-main li + li { margin-top: 6px; }
.legal-main a { color: var(--aiwa-brand-dark); font-weight: 650; text-underline-offset: 3px; }
.legal-table { width: 100%; margin: 14px 0; border: 1px solid var(--aiwa-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 13px; }
.legal-table th { padding: 10px 13px; background: var(--aiwa-bg); color: var(--aiwa-ink); font-weight: 750; text-align: left; }
.legal-table td { padding: 10px 13px; border-top: 1px solid var(--aiwa-line); color: var(--aiwa-text); line-height: 1.55; vertical-align: top; }
.legal-table-scroll { overflow-x: auto; }
@media (max-width: 880px) { .legal-wrap { grid-template-columns: 1fr; gap: 24px; } .legal-toc { position: static; } }

/* Help center */
.help-search { position: relative; max-width: 560px; margin: 22px 0 0; }
.help-search img { position: absolute; top: 50%; left: 16px; width: 17px; height: 17px; opacity: .5; transform: translateY(-50%); }
.help-search input { width: 100%; padding: 14px 18px 14px 44px; border: 1px solid var(--aiwa-line); border-radius: 999px; background: #fff; color: var(--aiwa-ink); font: inherit; font-size: 14.5px; outline: none; box-shadow: 0 6px 20px rgba(15,42,26,.06); }
.help-search input:focus { border-color: #b9cfc1; box-shadow: 0 0 0 3px rgba(19,122,61,.12); }
.faq-cat { margin-top: 38px; }
.faq-cat > h2 { display: flex; align-items: center; gap: 11px; margin: 0 0 14px; font-size: 19px; font-weight: 780; letter-spacing: -0.02em; }
.faq-cat > h2 .stat-tile { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.faq-cat > h2 .stat-tile img { width: 17px; height: 17px; display: block; }
details.faq-item { margin-bottom: 9px; border: 1px solid var(--aiwa-line); border-radius: 13px; background: #fff; transition: border-color 140ms; }
details.faq-item[open] { border-color: #b9cfc1; box-shadow: 0 8px 24px rgba(15,42,26,.07); }
details.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; color: var(--aiwa-ink); font-size: 14.5px; font-weight: 700; cursor: pointer; list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: ""; width: 14px; height: 14px; flex: 0 0 14px; background: currentColor; -webkit-mask: url('/assets/icons/bootstrap/chevron-down.svg') center/contain no-repeat; mask: url('/assets/icons/bootstrap/chevron-down.svg') center/contain no-repeat; opacity: .55; transition: transform 180ms; }
details.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-a { padding: 0 17px 15px; }
.faq-a p, .faq-a li { color: var(--aiwa-text); font-size: 13.5px; line-height: 1.7; }
.faq-a p { margin: 0 0 9px; }
.faq-a ul, .faq-a ol { margin: 6px 0 9px; padding-left: 20px; }
.faq-a p:last-child { margin-bottom: 0; }
.help-none { display: none; padding: 26px; border: 1px dashed var(--aiwa-line); border-radius: 14px; color: var(--aiwa-muted); text-align: center; }
.help-contact { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 44px; padding: 24px; border-radius: 18px; background: linear-gradient(120deg, #0e6230, #17994d 65%, #1fb35c); }
.help-contact b { display: block; color: #fff; font-size: 17px; font-weight: 800; }
.help-contact span { color: rgba(255,255,255,.85); font-size: 13px; }
.help-contact a { flex: 0 0 auto; padding: 11px 20px; border-radius: 999px; background: #fff; color: var(--aiwa-brand-dark); font-size: 13.5px; font-weight: 800; text-decoration: none; }
@media (max-width: 640px) { .help-contact { flex-direction: column; text-align: center; } }

/* Dark mode for content pages */
html[data-theme="dark"] .content-page main, html[data-theme="dark"] .content-hero { background: #0f1512; }
html[data-theme="dark"] .content-hero { background: radial-gradient(600px 260px at 15% -20%, rgba(47,174,99,.1) 0%, rgba(47,174,99,0) 70%), #0f1512; border-color: #1e2822; }
html[data-theme="dark"] .content-hero h1, html[data-theme="dark"] .legal-main h2, html[data-theme="dark"] .legal-main h3, html[data-theme="dark"] .faq-cat > h2, html[data-theme="dark"] details.faq-item summary, html[data-theme="dark"] .content-body h2, html[data-theme="dark"] .content-body h3 { color: #e8efe9; }
html[data-theme="dark"] .legal-meta span, html[data-theme="dark"] .legal-toc, html[data-theme="dark"] details.faq-item, html[data-theme="dark"] .contact-card, html[data-theme="dark"] .help-card, html[data-theme="dark"] .help-search input { border-color: #28332c; background: #161d19; color: #cfdad2; }
html[data-theme="dark"] .in-short { border-color: #2f4237; background: rgba(47,174,99,.1); }
html[data-theme="dark"] .legal-main p, html[data-theme="dark"] .legal-main li, html[data-theme="dark"] .faq-a p, html[data-theme="dark"] .faq-a li, html[data-theme="dark"] .content-body p, html[data-theme="dark"] .content-body li { color: #b9c6bd; }
html[data-theme="dark"] .legal-main a, html[data-theme="dark"] .content-body a { color: #4cc47c; }
html[data-theme="dark"] .legal-toc a { color: #b9c6bd; }
html[data-theme="dark"] .legal-toc a:hover { background: #1b241f; color: #e8efe9; }
html[data-theme="dark"] .legal-table { border-color: #28332c; }
html[data-theme="dark"] .legal-table th { background: #1b241f; color: #e8efe9; }
html[data-theme="dark"] .legal-table td { border-color: #28332c; color: #b9c6bd; }
html[data-theme="dark"] .content-callout { border-color: #2f4237; background: rgba(47,174,99,.1); }
html[data-theme="dark"] .faq-cat .stat-tile { background: #1d2620 !important; }
html[data-theme="dark"] .help-none { border-color: #28332c; }

/* tile colors + icon tints (shared with homepage) */
.tt-green { background: #e3f4e9; } .tt-blue { background: #e6f0fd; } .tt-amber { background: #fdf2df; } .tt-violet { background: #efeafe; }
.tt-pink { background: #fdeaf1; } .tt-teal { background: #e2f5f5; } .tt-red { background: #fdeae8; } .tt-sky { background: #e6f4fb; }
.tt-lime { background: #eff7e2; } .tt-slate { background: #edf1f2; }
.chip-ic-green { filter: invert(35%) sepia(70%) saturate(680%) hue-rotate(97deg) brightness(91%); }
.chip-ic-teal { filter: invert(45%) sepia(60%) saturate(500%) hue-rotate(140deg) brightness(92%); }
.chip-ic-violet { filter: invert(40%) sepia(55%) saturate(900%) hue-rotate(230deg) brightness(95%); }
.chip-ic-orange { filter: invert(48%) sepia(80%) saturate(900%) hue-rotate(357deg) brightness(95%); }
.chip-ic-blue { filter: invert(40%) sepia(70%) saturate(600%) hue-rotate(185deg) brightness(95%); }
