/* W7: the app's Terms screens (Roz/lib/features/info/terms/presentation/terms_page.dart and
   shared/info_design.dart): the index (hero, one row per section, agreement) and one page per
   section. Gradients are the app's own, with its colours and directions. */
.terms-app { margin-top: 80px; padding: 16px 16px 48px; background: #F3F8FE; }
.terms-app__inner { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.terms-app__inner--narrow { max-width: 760px; }
.terms-app__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.terms-app__bar h1 { margin: 0; font-size: 1.25rem; font-weight: 800; color: #0F172A; }
.terms-app__back { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #FFFFFF; border: 1px solid #E2E8F0; color: #0F172A; text-decoration: none; }
.terms-app__back:hover { border-color: #1E88E5; color: #1E88E5; }
[dir="rtl"] .terms-app__back i { transform: scaleX(-1); }

/* Round icon bubble (InfoIconBubble): white with a tint ring, or tint with a white ring. */
.terms-app-bubble { flex: none; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #FFFFFF; border: 3px solid #E6F0FF; color: #1E88E5; font-size: 1.25rem; box-shadow: 0 4px 12px rgba(43, 123, 240, .10); }
.terms-app-bubble--soft { background: #E6F0FF; border-color: #FFFFFF; }
.terms-app-bubble--48 { width: 48px; height: 48px; font-size: 1.15rem; }
.terms-app-bubble--46 { width: 46px; height: 46px; font-size: 1.1rem; }
.terms-app-bubble--44 { width: 44px; height: 44px; font-size: 1.05rem; }
.terms-app-bubble--40 { width: 40px; height: 40px; font-size: .95rem; }
.terms-app-bubble--30 { width: 30px; height: 30px; font-size: .75rem; }

/* Index: the hero (_TermsHero: white → DCEBFF, end → start), rows, agreement (D3E6FF → white, start → end). */
.terms-app-hero { display: flex; align-items: center; gap: 10px; padding: 16px 16px 16px 8px; border-radius: 22px; border: 1.5px solid #FFFFFF;
    background: linear-gradient(to left, #FFFFFF, #DCEBFF); box-shadow: 0 10px 22px rgba(43, 123, 240, .10); }
[dir="rtl"] .terms-app-hero { padding: 16px 8px 16px 16px; background: linear-gradient(to right, #FFFFFF, #DCEBFF); }
.terms-app-hero img { width: 124px; flex: none; object-fit: contain; }
.terms-app-hero h2 { margin: 0; font-size: 1.3rem; font-weight: 900; color: #1565C0; line-height: 1.3; }
.terms-app-hero p { margin: 8px 0 0; font-size: .85rem; color: #475569; line-height: 1.6; }
.terms-app-rows-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.terms-app-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 16px; color: #0F172A; text-decoration: none; }
.terms-app-row:hover { border-color: #1E88E5; color: #0F172A; }
.terms-app-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.terms-app-row__text strong { font-size: .9rem; font-weight: 800; }
.terms-app-row__text small { font-size: .75rem; color: #475569; }
.terms-app-row__chevron { flex: none; font-size: .8rem; color: #1E88E5; }
[dir="rtl"] .terms-app-row__chevron { transform: scaleX(-1); }
.terms-app-agreement { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #E2E8F0; border-radius: 16px;
    background: linear-gradient(to right, #D3E6FF, #FFFFFF); color: #1565C0; font-size: .82rem; font-weight: 600; line-height: 1.6; }
[dir="rtl"] .terms-app-agreement { background: linear-gradient(to left, #D3E6FF, #FFFFFF); }

/* One section (_SectionCard). */
.terms-app-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 16px; }
.terms-app-card__head { display: flex; align-items: center; gap: 12px; }
.terms-app-card__head h2 { margin: 0; font-size: 1.15rem; font-weight: 900; color: #1565C0; line-height: 1.35; }
.terms-app-card__body { margin: 0; font-size: .86rem; color: #475569; line-height: 1.7; }
.terms-app-card__heading { margin: 0; font-size: .98rem; font-weight: 900; color: #0F172A; }
.terms-app-inner { padding: 12px; background: #F6FAFF; border: 1px solid #E2E8F0; border-radius: 14px; }
.terms-app-inner__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.terms-app-inner__head strong { font-size: .9rem; font-weight: 900; color: #0F172A; }
.terms-app-dots { list-style: none; margin: 0; padding: 0 18px; display: flex; flex-direction: column; gap: 5px; }
.terms-app-dots li { position: relative; padding-inline-start: 16px; font-size: .82rem; color: #1565C0; line-height: 1.55; }
.terms-app-dots li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: #1E88E5; }
.terms-app-rows { display: flex; flex-direction: column; gap: 8px; }
.terms-app-iconrow { display: flex; align-items: center; gap: 12px; font-size: .86rem; font-weight: 700; color: #0F172A; line-height: 1.5; }
.terms-app-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.terms-app-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: #0F172A; line-height: 1.55; }
/* The app draws crosses in InfoColors.pink, which is the same blue (#1E88E5) as the checks. */
.terms-app-checks li i { margin-top: 3px; color: #1E88E5; }
.terms-app-note { display: flex; align-items: flex-start; gap: 12px; background: rgba(230, 240, 255, .7); }
.terms-app-note strong { display: block; font-size: .9rem; font-weight: 900; color: #0F172A; }
.terms-app-note p { margin: 4px 0 0; font-size: .8rem; color: #475569; line-height: 1.6; }
.terms-app-note.is-warm { background: rgba(255, 243, 214, .7); border-color: #FFE3A3; }
.terms-app-note.is-warm .terms-app-bubble { color: #F5A300; }

/* Banner at the foot of a section (_SectionBanner: DCEBFF → F2F8FF, start → end; the icon 5AA2FF → 1B5ED6, top left → bottom right). */
.terms-app-banner { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; border: 1.5px solid #FFFFFF;
    background: linear-gradient(to right, #DCEBFF, #F2F8FF); }
[dir="rtl"] .terms-app-banner { background: linear-gradient(to left, #DCEBFF, #F2F8FF); }
.terms-app-banner strong { font-size: .9rem; font-weight: 800; color: #1565C0; line-height: 1.5; }
.terms-app-banner--picture { flex-direction: column; text-align: center; gap: 6px; background: none !important; border: 0; }
.terms-app-banner--picture img { height: 120px; object-fit: contain; }
.terms-app-illustration { position: relative; flex: none; width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(to bottom right, #5AA2FF, #1B5ED6); color: #FFFFFF; font-size: 2rem; box-shadow: 0 6px 14px rgba(43, 123, 240, .10); }
.terms-app-illustration .terms-app-bubble { position: absolute; inset-inline-end: -4px; bottom: -2px; }

/* /terms: the old page stays in the markup for the app's reader (terms_html_parser.dart), hidden; the app's index follows it. */
.terms-page-header, .terms-wrapper, #back-to-top { display: none !important; }

@media (max-width: 575.98px) {
    .terms-app-hero img { width: 88px; }
}
