body > header:not(.app-header) { position: fixed; top: 0; left: 0; right: 0; width: 100%; max-width: none; height: 92px; padding-inline: max(24px, calc((100% - 1170px) / 2)); margin: 0; z-index: 100; background: #faf9f3f5; backdrop-filter: blur(12px); box-shadow: 0 3px 15px #29224209; gap: 20px; }
body:has(> header:not(.app-header)) { padding-top: 92px; }
body > header:not(.app-header) nav { align-items: center; gap: 18px; }
html { scroll-padding-top: 112px; }
.app-header { position: sticky; top: 0; z-index: 100; background: #faf9f3f5; backdrop-filter: blur(12px); }
@media (max-width: 1100px) {
 body > header:not(.app-header) { height: 76px; padding-inline: 24px; }
 body:has(> header:not(.app-header)) { padding-top: 76px; }
 body > header:not(.app-header) .brand { width: 125px; height: 65px; }
 body > header:not(.app-header) .brand img { width: 125px; height: 125px; transform: translateY(-30px); }
 body > header:not(.app-header) .button.small { display: none; }
 body > header:not(.app-header) .menu { display: block; border: 0; background: none; font-size: 25px; }
 body > header:not(.app-header) nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #faf9f3; padding: 18px 24px; box-shadow: 0 15px 20px #29224215; flex-direction: column; align-items: stretch; gap: 6px; max-height: calc(100dvh - 76px); overflow-y: auto; }
 body > header:not(.app-header) nav.open { display: flex; }
 body > header:not(.app-header) nav > a { padding: 8px 0; }
 html { scroll-padding-top: 92px; }
}
@media (max-width: 760px) {
 .app-header { gap: 10px; padding-inline: 16px; }
 .app-header nav { gap: 12px; font-size: 10px; }
}
@media(max-width:760px) {
 .app-header .portal-brand { width: 88px; height: 58px; flex-shrink: 0; }
 .app-header .portal-brand img { width: 100px; height: 100px; transform: translate(-6px,-22px); }
 .app-header nav { flex: 1; justify-content: flex-end; gap: 10px; }
 .app-header nav > a[href="/#roadmap"] { display: none; }
 .app-header nav > a, .app-header nav .text-button { white-space: nowrap; font-size: 10px; }
}
.company-info { grid-column: 1/-1; width: 100%; border-top: 1px solid #ded7e7; margin-top: 24px; padding-top: 24px; text-align: left; }
.company-info h2 { font-size: 12px; line-height: 1.7; letter-spacing: 0; margin: 0 0 12px; color: #4c378b; }
.company-info p { font-size: 10px; line-height: 1.8; margin: 7px 0; }
.company-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 10px; color: #4c378b; margin-top: 12px; }
.legal-main { max-width: 1040px; padding: 50px 40px 70px; margin: auto; }
.legal-main h1 { font-size: clamp(30px,4vw,44px); margin: 15px 0; }
.legal-card { margin-top: 30px; padding: 28px; border: 1px solid #dfd6e8; border-radius: 14px; background: #fff; }
.legal-card h2 { font-size: 17px; line-height: 1.7; margin: 0 0 22px; color: #4c378b; }
.legal-card dl { margin: 0 0 22px; }
.legal-card dl > div { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 20px; padding: 16px 0; border-top: 1px solid #eee8f5; }
.legal-card dt { font-size: 11px; font-weight: 600; color: #716b7b; }
.legal-card dd { font-size: 12px; margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
.legal-card a,.legal-help a { color: #4c378b; text-decoration: underline; text-underline-offset: 3px; }
.legal-help { font-size: 12px; margin-top: 24px; }
@media(max-width:760px) { .legal-main { padding: 35px 24px 75px; } .legal-card { padding: 20px; } .legal-card dl > div { grid-template-columns: 1fr; gap: 5px; } }
/* Free learning: compact, grouped navigation shared by every page. */
.learn-dropdown { position: relative; }
.learn-trigger { display: flex; align-items: center; gap: 7px; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.learn-trigger:hover,.learn-trigger[aria-expanded='true'] { color: #4c378b; }
.nav-chevron { display: flex; align-items: center; }
.nav-chevron svg { width: 14px; height: 14px; transition: transform .16s; }
.learn-trigger[aria-expanded='true'] .nav-chevron svg { transform: rotate(180deg); }
.free-dropdown { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 336px; max-width: calc(100vw - 24px); padding: 10px; border: 1px solid #dfd7e9; border-radius: 14px; background: #fff; color: #292242; box-shadow: 0 10px 30px #29224216; z-index: 101; }
.free-dropdown[hidden] { display: none !important; }
.free-dropdown::before { content: ''; position: absolute; top: -9px; left: 0; right: 0; height: 9px; }
.free-dropdown .free-menu-group { padding: 3px 0; }
.free-dropdown h3 { font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: 0; color: #716b7b; margin: 6px 10px; }
.free-dropdown .free-menu-group + .free-menu-group { border-top: 1px solid #eee8f4; margin-top: 7px; padding-top: 9px; }
.free-dropdown .free-feature { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 9px 10px; border-radius: 8px; color: #292242; text-decoration: none; }
.free-dropdown .free-feature:hover,.free-dropdown .free-feature:focus-visible { background: #f1ecf8; color: #4c378b; }
.free-dropdown .nav-feature-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 22px; color: #4c378b; }
.free-dropdown .nav-feature-icon svg { width: 21px; height: 21px; }
.free-dropdown .nav-feature-copy { display: block; min-width: 0; }
.free-dropdown .nav-feature-copy strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.45; }
.free-dropdown .nav-feature-copy small { display: block; font-size: 11px; font-weight: 400; line-height: 1.45; color: #716b7b; margin-top: 2px; }
.free-skill-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px; }
.free-dropdown .free-skill-grid .free-feature { gap: 10px; }
.free-menu-daily { border-top: 1px solid #eee8f4; margin-top: 8px; padding-top: 8px; }
.free-menu-daily .free-feature { background: #faf8f2; }
@media(max-width:1100px) {
 body > header:not(.app-header) .learn-trigger { width: 100%; justify-content: space-between; }
 body > header:not(.app-header) .free-dropdown { position: static; transform: none; width: 100%; max-width: none; margin: 6px 0; box-shadow: none; }
}
@media(max-width:760px) {
 .app-header .learn-dropdown { position: static; }
 .app-header .learn-trigger { max-width: 132px; gap: 5px; }
 .app-header .free-dropdown { right: 16px; left: auto; top: calc(100% + 8px); transform: none; width: min(336px,calc(100vw - 32px)); max-height: calc(100dvh - 120px); overflow-y: auto; }
 .free-dropdown .free-feature { min-height: 48px; }
}
@media(prefers-reduced-motion:reduce) { .nav-chevron svg { transition: none; } }
