/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Brand colors */
    --primary-green: #10B981;
    --dark-green: #063827;
    --text-main: #132E21;
    /* Backgrounds */
    --bg-grid: #F3F4F6;
    --bg-light: #F9FAFB;
    --bg-white: #ffffff;
    --white: #ffffff; /* alias for compatibility */
    --footer-bg: #0F281E;
    /* UI grays */
    --border-light: #E5E7EB;
    --text-muted: #5E7469;
    --text-muted-alt: #9CA3AF;
    --timeline-line: #9FA9A4;
    --timeline-dot: #D1D5DB;
    /* Layout */
    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--text-main);
    background-color: var(--bg-grid);
    /* 背景のグリッド設定 */
    background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 20px 20px;
    line-height: 1.6;
    /* 極小画面でのレイアウト崩れ防止 */
    min-width: 323px;
}

/* =========================================
   2. Layout Structure (Responsive)
   ========================================= */
.app-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

/* --- Step 0: Smartphone Default (~ 419px) --- */
.side-left, .side-right { display: none; }
.sp-only { display: block; }

/* main-content：全画面でPCと同じ黒枠・角丸（法律ページは別で上書き） */
.main-content {
    width: 100%;
    border: 1px solid var(--text-main);
    border-top-left-radius: 210px;
    border-top-right-radius: 210px;
    overflow: visible;
    background-color: transparent;
}

/* --- Step 1: Mobile/Tablet Portrait (420px ~ 799px) --- */
@media (min-width: 420px) {
    .main-content {
        max-width: 420px;
        box-shadow: none;
        margin-top: 20px;
        padding-bottom: 0;
    }
    .side-left, .side-right { display: none; }
    .sp-only { display: block; }
}

/* --- Step 2: Tablet Landscape / Small PC (800px ~ 1023px) --- */
@media (min-width: 800px) {
    .app-wrapper {
        gap: 20px;
    }
    
    /* 右サイドバー (CTA) 表示 */
    .side-right {
        display: flex;
        width: 320px;
        height: 100vh;
        position: sticky;
        top: 0;
        padding-top: 200px;
        flex-direction: column;
        z-index: 100;
    }

    .sp-only { display: none; }
    .side-left { display: none; }
}

/* --- Step 3: Desktop / Large Screen (1024px ~) --- */
@media (min-width: 1024px) {
    .app-wrapper {
        gap: 0;
    }
    
    /* 左サイドバー (Menu) 表示 */
    .side-left {
        display: flex;
        width: 280px;
        height: 100vh;
        position: sticky;
        top: 0;
        padding: 60px 20px;
        flex-direction: column;
        align-items: flex-end;
        border-right: none;
        z-index: 100;
    }
}

/* =========================================
   3. Global Components (Menu & Lang Switch)
   ========================================= */

/* --- Left Side Menu (Timeline Style) --- */
.menu-container {
    text-align: right;
    width: 100%;
    max-width: 200px;
    margin-right: 20px;
}

.menu-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-muted-alt);
    margin-bottom: 24px;
    padding-right: 24px;
}

.timeline-menu {
    list-style: none;
    position: relative;
    border-right: none;
    padding-right: 0;
}

.timeline-menu li {
    position: relative;
    margin-bottom: 0;
    padding-bottom: 40px;
    padding-right: 24px;
}

.timeline-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    line-height: 1.4;
    transition: color 0.3s;
    border-bottom: 1px solid var(--timeline-line);
    padding-bottom: 4px;
}

/* Timeline Vertical Line */
.timeline-menu li::before {
    content: "";
    position: absolute;
    right: -1px;
    width: 1px;
    border-right: 1px dashed var(--timeline-line);
    top: 0;
    height: 100%;
}

.timeline-menu li:first-child::before {
    top: auto;
    bottom: 0;
    height: 56px;
}

.timeline-menu li:last-child::before {
    top: 0;
    height: calc(100% - 56px);
}

/* Timeline Dot */
.timeline-menu li::after {
    content: "";
    position: absolute;
    bottom: 56px;
    right: -6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: var(--timeline-dot);
    transform: translateY(50%);
    z-index: 1;
    transition: background-color 0.3s;
}

/* Active State */
.timeline-menu li.active a {
    color: var(--dark-green);
    border-bottom-color: var(--dark-green);
}

.timeline-menu li.active::after {
    background-color: var(--primary-green);
    transform: translateY(50%) scale(1.2);
}

/* --- Language Switcher --- */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    
    display: flex;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lang-option {
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-muted-alt);
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
}

.lang-option:hover {
    color: var(--dark-green);
    background-color: rgba(0,0,0,0.03);
}

.lang-option.active {
    background-color: var(--dark-green);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 420px) {
    .lang-switch {
        top: 16px;
        right: 16px;
    }
}

/* =========================================
   4. Section Styles
   ========================================= */
.section {
    padding: 40px 16px;
    text-align: center;
    background-color: var(--bg-white);
}

.section-title {
    color: var(--dark-green);
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    text-align: center;
}

.section-text {
    font-size: 15px;
    text-align: center;
    line-height: 1.8;
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 60px 0px 0px;
    
    background-color: transparent;
    background-image: linear-gradient(to bottom, var(--bg-white) 30%, rgba(255,255,255,0) 100%);
    background-size: auto;
    
    overflow: visible;
    position: relative;
    z-index: 1;
    border-top-left-radius: 210px;
    border-top-right-radius: 210px;
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    pointer-events: none;
    overflow: hidden;
    border-top-left-radius: 210px;
    border-top-right-radius: 210px;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    background: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E"),
        radial-gradient(50% 50% at 50% 50%, #ced4da 0%, rgba(247, 249, 250, 0.00) 100%);
    background-blend-mode: multiply;
    filter: blur(40px);
}
.circle-1 { top: 325px; left: 172px; width: 294px; height: 294px; opacity: 0.8; }
.circle-2 { top: 162px; left: -74px; width: 253px; height: 253px; opacity: 0.5; }

.hero .logo-img, .hero .headline, .hero .subhead, .hero .mockup-container {
    position: relative; z-index: 2;
}

.logo-img {
    width: 128px; height: auto;
    margin-bottom: 32px; display: block;
    margin-left: auto; margin-right: auto;
}

.headline {
    font-size: 28px; font-weight: bold;
    margin-bottom: 6px; line-height: 1.3; letter-spacing: -0.3px;
}

.subhead {
    font-size: 15px; font-weight: normal; color: var(--text-main);
    margin-bottom: 24px; line-height: 1.3; letter-spacing: -0.3px;
}

/* 3D Mockup（FV_moc.webp） */
.mockup-container {
    display: flex;
    justify-content: center;
    margin-top: -40px;
    margin-bottom: -40px;
    position: relative;
    z-index: 3;
}

.mockup {
    width: 100%;
    max-width: 100%;
    height: 520px;
    min-height: 400px;
    background: transparent;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: visible;
}

.mockup-fv {
    background-image: url("/images/FV_moc.webp");
    position: relative;
    z-index: 2;
       margin: -45px -32px 0px;
}


/* --- CTA Box & Buttons --- */
.cta-box {
    background: var(--white);
    border: 2px solid var(--primary-green);
    border-radius: 20px;
    padding: 16px;
    margin: -60px 16px 0px;
    box-shadow: none;
    position: relative; z-index: 10;
}

/* ファーストビューのCTAのみ */
.hero .cta-box {
    margin-left: -12px;
    margin-right: -12px;
    margin-top: -160px;
    padding: 16px 40px;
}

.cta-title { font-weight: bold; font-size: 18px; margin-bottom: 6px; text-align: center; }
.cta-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; text-align: center; }

.input-group { margin-bottom: 12px; }
.input-field {
    width: 100%; padding: 16px; background: var(--bg-light);
    border: none; border-radius: 30px;
    font-size: 14px; text-align: left; outline: none;
}

.email-error {
    display: none;
    margin-top: 11px;
    font-size: 12px;
    color: #FF7F54;
}
.email-error.is-invalid { display: block; }

.btn-submit {
    width: 100%; background: var(--primary-green); color: white;
    padding: 16px; border: none; border-radius: 30px;
    font-weight: bold; font-size: 14px; cursor: pointer;
    transition: opacity 0.2s, filter 0.1s, transform 0.1s;
}

.btn-submit:hover { opacity: 0.9; }

.btn-submit:active {
    filter: brightness(0.9);
    transform: scale(0.98);
}

/* CTA配置：下部CTAは吹き出しと重ならないよう余白を確保 */
.bottom-cta-section .cta-box { margin-top: 32px; }
:lang(en) .bottom-cta-section .cta-box { margin-top: 24px; }

/* --- Features Section --- */
.features-section {
    display: flex; justify-content: center; gap: 6px;
    background-color: var(--bg-light);
    padding: 40px 16px 40px;
    width: 100%;
}

.feature-card {
    background: var(--text-main);
    color: white;
    border-radius: 16px; padding: 20px 8px 24px;
    width: 32%; min-width: 90px;
    position: relative; display: flex; flex-direction: column;
    align-items: center; text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-icon-img {
    width: 32px; height: 32px; margin-bottom: 8px; object-fit: contain;
}

.feature-text { font-size: 10px; line-height: 1.3; opacity: 0.9; }
.feature-text strong { font-size: 14px; font-weight: bold; display: block; margin-top: 2px; color: #ffffff; }

.feature-check-img {
    width: 32px; height: 32px;
    position: absolute; bottom: -16px; left: 50%;
    transform: translateX(-50%);
}

/* --- Approach Grid --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px; margin-bottom: 32px;
}

.grid-item {
    background: var(--bg-light);
    border-radius: 12px; padding: 8px 12px 16px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.grid-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.card-title {
    font-size: 11px; font-weight: bold; color: var(--dark-green);
    margin-bottom: 8px; text-align: center;
    min-height: 2.4em; display: flex; align-items: center; justify-content: center;
}

.card-icon-img { width: 40px; height: 40px; object-fit: contain; }

/* --- Advisor Section --- */
.advisor-section {
    background-color: var(--bg-light);
    padding-top: 40px;
    width: 100%; margin: 0;
}

.chat-container {
    display: flex; flex-direction: column; gap: 24px;
    margin-top: 20px; padding: 0 16px;
    max-width: 600px; margin-left: auto; margin-right: auto;
}

.chat-card {
    background: var(--bg-white); padding: 20px;
    text-align: left; line-height: 1.6;
}

.chat-text { font-size: 14px; color: var(--text-main); }
.chat-text strong { background: linear-gradient(transparent 50%, #b0ecd4 60%); font-weight: bold; }

.user-card {
    margin-left: auto; width: 95%;
    border-radius: 20px 20px 4px 20px;
    border: none;
}

.advisor-response-group {
    display: flex; gap: 12px; align-items: flex-end;
}

.advisor-icon-img {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    background-color: var(--primary-green);
    flex-shrink: 0;
}

.response-cards { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.advisor-card {
    border-radius: 20px 20px 20px 4px;
    border-left: none;
}

/* --- Green Banner --- */
.green-banner {
    background: var(--primary-green);
    color: white; padding: 40px 20px; width: 100%;
}

.banner-content {
    display: flex; flex-direction: column; gap: 16px;
    width: fit-content; margin: 0 auto;
    align-items: flex-start;
}

.benefit-item {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: normal; line-height: 1.4;
}

.target-icon-img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }

/* --- Privacy Section --- */
.privacy-section {
    background-color: var(--dark-green);
    color: white;
    width: 100%; margin: 0;
}

.privacy-title {
    font-size: 28px; font-weight: bold; line-height: 1.1;
    margin-bottom: 12px; letter-spacing: 1px;
}

.privacy-subtitle { font-size: 12px; opacity: 0.8; margin-bottom: 32px; }
.privacy-main-icon { width: 64px; height: 64px; margin-bottom: 24px; }

.privacy-desc {
    font-size: 13px; line-height: 1.8; margin-bottom: 40px; opacity: 0.9;
}

.privacy-card-container { display: flex; gap: 12px; justify-content: center; }

.privacy-card {
    background: var(--bg-white); color: var(--text-main);
    border-radius: 16px; padding: 24px 16px;
    text-align: left; flex: 1; display: flex; flex-direction: column;
}

.privacy-card-title { font-size: 14px; font-weight: bold; margin-bottom: 12px; color: black; }
.privacy-card-text { font-size: 12px; line-height: 1.6; color: #333; text-align: left; }

/* --- Footer & Bottom CTA --- */
.bottom-cta-section {
    background-color: var(--white);
    padding: 40px 20px 40px; width: 100%;
    display: flex; flex-direction: column; align-items: center;
}

.last-message-container {
    display: flex; gap: 12px; align-items: end; justify-content: center;
    margin-bottom: 40px; max-width: 100%;
}

.last-message-card {
    border-radius: 20px 20px 20px 4px;
    border-left: none; background-color: var(--bg-grid);
    padding: 24px; text-align: left; min-width: 240px;
}

.bottom-cta { margin: 0; width: 100%; max-width: 380px; }

.footer {
    background-color: var(--footer-bg); color: white;
    padding: 40px; font-size: 12px;
    width: 100%; position: relative; z-index: 10;
}

.footer-logo { margin-bottom: 32px; text-align: center; }
.footer-logo-img { width: 130px; }

.footer-grid { display: flex; flex-direction: column; gap: 32px; margin-bottom: 40px; }
.footer-heading { font-size: 13px; font-weight: bold; color: #8faeb0; margin-bottom: 8px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0; }
.footer-links ul { padding-left: 20px; color: #cbd5e1; list-style: disc; }

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 0;
    box-sizing: border-box;
    color: var(--primary-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    gap: 4px;
    transition: opacity 0.2s;
}

.footer-links a::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.footer-links a:hover { opacity: 0.7; }

.footer-top-link {
    text-align: right;
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.footer-top-link a {
    color: var(--primary-green);
    font-size: 12px;
    font-weight: normal;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-block;
    padding: 12px 0;
    min-height: 44px;
    transition: opacity 0.2s;
}

.footer-top-link a:hover { opacity: 0.7; }

.footer-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    margin-bottom: 40px;
    color: #cbd5e1;
    line-height: 1.8;
}

.copyright { text-align: left; font-size: 11px; opacity: 0.6; }

@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        max-width: 800px;
        margin: 0 auto 40px;
    }
}

/* =========================================
   5. Typography & Modals
   ========================================= */
/* --- English Page (Serif) --- */
:lang(en) h1,
:lang(en) h2,
:lang(en) h3,
:lang(en) .headline,
:lang(en) .section-title,
:lang(en) .privacy-title,
:lang(en) .cta-title,
:lang(en) .menu-title    /* サイドメニューのタイトル */
{
    /* 優先順位: Georgia(画面で見やすい) -> Garamond(伝統的) -> 一般的な明朝 */
    font-family: "Georgia", "Garamond", "Times New Roman", Times, serif;
}

:lang(en) .mockup-fv {
    background-image: url("/images/FV_moc.webp");
}

/* --- Thank You Modal --- */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transform: translateZ(0);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-white);
    width: 340px; /* スマートフォンでも収まる幅 */
    max-width: 90%;
    padding: 48px 32px; /* 上下の余白を広めに */
    border-radius: 32px; /* 大きな角丸 */
    text-align: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-muted-alt);
    margin-bottom: 24px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1;
}

.modal-icon {
    margin-bottom: 32px;
}

.modal-icon img {
    width: 88px;
    height: 88px;
    display: block;
    margin: 0 auto;
}

.modal-text {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 24px;
    font-feature-settings: "palt";
}

.modal-confirm-btn {
    width: 100%;
    background: var(--primary-green);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 999px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 8px;
}

.modal-confirm-btn:hover { opacity: 0.9; }
.modal-confirm-btn:active { transform: scale(0.98); }

.modal-error-body .modal-title { margin-bottom: 24px; }
.modal-error-body .modal-error-msg { margin-bottom: 24px; }

/* --- 多言語表示 (msg-ja / msg-en) --- */
.msg-ja { display: block; }
.msg-en { display: none; }
:lang(en) .msg-ja { display: none; }
:lang(en) .msg-en { display: block; }

/* --- アクセシビリティ (SR用) --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   6. Legal Pages (Terms / Privacy)
   ========================================= */
.legal-page-body .main-content {
    width: 100% !important;
    max-width: 420px !important;
    margin: 16px !important;
    padding: 0 16px 16px !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* 規約エリアの枠 */
.legal-page-body .legal-page {
    border: 1px solid var(--text-main);
    border-radius: 0;
}

.legal-page {
    padding: 48px 24px 64px;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
    background-color: var(--bg-white);
}

.legal-page .legal-page-logo {
    display: block;
    margin-bottom: 24px;
    text-align: center;
}

.legal-page .legal-page-logo img {
    display: inline-block;
    width: 128px;
    height: auto;
    vertical-align: middle;
}

.legal-page .legal-page-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: var(--dark-green);
    margin-top: 40px;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dark-green);
}

.legal-page .legal-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-main);
}

.legal-page .legal-body h2 {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-green);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-page .legal-body h3 {
    font-size: 13px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-page .legal-body p {
    margin-bottom: 12px;
}

.legal-page .legal-body ul,
.legal-page .legal-body ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

.legal-page .legal-body a {
    color: var(--primary-green);
    text-decoration: underline;
}

.legal-page .legal-footer-links {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
}

.legal-page .legal-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 8px 0 0;
    box-sizing: border-box;
    color: var(--primary-green);
    text-decoration: underline;
    margin-right: 16px;
}