:root {
    color-scheme: light;
    --bg: #fff8fb;
    --bg-2: #fff2f7;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-soft: #fff6fa;
    --text: #22131b;
    --text-soft: #5d4a55;
    --text-faint: #876d79;
    --line: rgba(130, 78, 99, 0.14);
    --line-strong: rgba(130, 78, 99, 0.22);
    --brand: #ff4d8d;
    --brand-deep: #d12b6b;
    --brand-soft: rgba(255, 77, 141, 0.12);
    --blue: #355cff;
    --blue-soft: rgba(53, 92, 255, 0.1);
    --green: #0f7b59;
    --green-soft: rgba(15, 123, 89, 0.1);
    --amber: #9e5a00;
    --amber-soft: rgba(158, 90, 0, 0.1);
    --shadow: 0 26px 70px rgba(88, 26, 55, 0.12);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.58;
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.16), transparent 26%),
        radial-gradient(circle at top right, rgba(53, 92, 255, 0.14), transparent 32%),
        linear-gradient(180deg, #fff8fb 0%, #fffefc 40%, #fff7fb 100%);
}

img {
    max-width: 100%;
}

a {
    color: var(--brand-deep);
}

a:hover {
    color: var(--brand);
}

.lang-en .lang-bn-only,
.lang-bn .lang-en-only {
    display: none !important;
}

.legal-shell {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    padding: 24px 0 64px;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    border-radius: 38px;
    padding: 36px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 244, 248, 0.92)),
        linear-gradient(90deg, rgba(255, 77, 141, 0.07), rgba(53, 92, 255, 0.07));
    box-shadow: var(--shadow);
}

.legal-hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -120px auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 141, 0.15), transparent 70%);
    pointer-events: none;
}

.legal-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.legal-brand img {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(255, 77, 141, 0.22);
}

.legal-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-brand-copy strong {
    font-size: 1rem;
}

.legal-brand-copy span {
    font-size: 0.92rem;
    color: var(--text-faint);
}

.pill-row,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill,
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.lang-switcher button,
.button,
.button-soft,
.button-danger {
    appearance: none;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 800;
    border-radius: 999px;
    padding: 12px 16px;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.lang-switcher button {
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-soft);
    border-color: var(--line);
}

.lang-switcher button[aria-pressed="true"],
.button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #ff7bac);
    box-shadow: 0 14px 28px rgba(255, 77, 141, 0.24);
}

.button-soft {
    background: var(--blue-soft);
    color: var(--blue);
    border-color: rgba(53, 92, 255, 0.16);
}

.button-danger {
    background: rgba(209, 43, 107, 0.1);
    color: var(--brand-deep);
    border-color: rgba(209, 43, 107, 0.16);
}

.lang-switcher button:hover,
.button:hover,
.button-soft:hover,
.button-danger:hover,
.chip:hover {
    transform: translateY(-1px);
}

.hero-grid,
.content-grid,
.summary-grid,
.two-col,
.card-grid {
    display: grid;
    gap: 18px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    align-items: end;
    position: relative;
    z-index: 1;
    gap: 24px;
}

.eyebrow {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--brand-deep);
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.lang-bn h1 {
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-size: clamp(2.35rem, 5.6vw, 4.2rem);
}

.hero-copy p,
.section-copy,
.card p,
.page-note,
.callout,
.section-card p,
.table-value,
.helper-note {
    color: var(--text-soft);
    line-height: 1.72;
}

.hero-copy p {
    margin: 20px 0 0;
    max-width: 62ch;
    font-size: 1.03rem;
}

.hero-copy .pill-row,
.hero-copy .button-row {
    margin-top: 18px;
}

.hero-panel,
.sidebar-card,
.summary-card,
.section-card,
.callout,
.link-card,
.form-card,
.footer-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: 0 16px 44px rgba(88, 26, 55, 0.08);
    backdrop-filter: blur(12px);
}

.hero-panel,
.section-card,
.footer-card,
.form-card {
    padding: 24px;
}

.sidebar-card,
.summary-card,
.link-card {
    padding: 18px;
}

.hero-panel h2,
.sidebar-card h2,
.summary-card h2,
.section-title,
.link-card h2,
.form-card h2,
.footer-card h2 {
    margin: 0 0 12px;
}

.hero-panel p,
.summary-card p,
.card p,
.link-card p,
.footer-card p {
    margin: 0;
}

.hero-panel dl {
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.hero-panel dt {
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.hero-panel dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.content-grid {
    margin-top: 22px;
    grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
    align-items: start;
}

.sidebar-stack {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
}

.sidebar-card h2 {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.toc {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.toc a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 700;
    border: 1px solid transparent;
}

.toc a.active,
.toc a:hover {
    color: var(--brand-deep);
    background: #ffffff;
    border-color: var(--line);
}

.meta-item {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(130, 78, 99, 0.1);
    background: var(--surface-soft);
}

.meta-item strong {
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: var(--text-faint);
}

.meta-item span {
    font-weight: 800;
}

.summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}

.summary-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

.main-stack {
    display: grid;
    gap: 20px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 18px;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.lang-bn .section-title {
    line-height: 1.18;
}

.tag {
    white-space: nowrap;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.link-card {
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 250, 0.88));
    padding: 20px;
}

.card strong,
.link-card h2,
.link-card h3 {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.table-list {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.table-row {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.table-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.table-label {
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.callout {
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.08), rgba(53, 92, 255, 0.06));
}

.callout strong {
    display: block;
    margin-bottom: 8px;
}

.section-card ul,
.section-card ol,
.form-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
}

.section-card li,
.form-card li {
    margin-bottom: 10px;
    color: var(--text-soft);
    line-height: 1.65;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.link-card ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 12px;
}

.link-card a {
    text-decoration: none;
    font-weight: 700;
}

.form-list {
    display: grid;
    gap: 14px;
}

.privacy-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid .field-span-2 {
    grid-column: 1 / -1;
}

.form-label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
}

.form-label span {
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    padding: 14px 16px;
    font: inherit;
    line-height: 1.5;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(209, 43, 107, 0.42);
    box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.12);
}

.field-hint {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-faint);
    line-height: 1.55;
}

.form-status {
    min-height: 24px;
    margin: 0;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--text-soft);
}

.form-status.is-success {
    color: var(--green);
}

.form-status.is-error {
    color: var(--brand-deep);
}

.form-field {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.form-field strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
}

.footer-card {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    font-weight: 800;
}

.portal-shell {
    display: grid;
    gap: 18px;
}

.portal-panel {
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 16px 44px rgba(88, 26, 55, 0.08);
}

.portal-panel h2 {
    margin: 0 0 8px;
    line-height: 1.12;
}

.portal-options {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.portal-option {
    width: 100%;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,246,250,0.84));
    padding: 17px 18px;
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.portal-option:hover {
    transform: translateY(-1px);
    border-color: rgba(209, 43, 107, 0.22);
}

.portal-option.is-selected {
    border-color: rgba(209, 43, 107, 0.34);
    box-shadow: 0 16px 28px rgba(209, 43, 107, 0.12);
}

.portal-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(130, 78, 99, 0.3);
    margin-top: 2px;
    position: relative;
    background: #fff;
}

.portal-option.is-selected .portal-radio {
    border-color: var(--brand);
}

.portal-option.is-selected .portal-radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--brand);
}

.portal-option strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--text);
}

.portal-option span {
    display: block;
    color: var(--text-soft);
    line-height: 1.58;
    font-size: 0.95rem;
}

.button[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.45;
    box-shadow: none;
}

.article-stack {
    display: grid;
    gap: 18px;
}

.article-block {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.article-block:first-child {
    padding-top: 0;
    border-top: 0;
}

.article-block h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
}

.article-block p {
    margin: 0 0 12px;
}

@media (max-width: 1080px) {
    .hero-grid,
    .content-grid,
    .summary-grid,
    .two-col,
    .card-grid,
    .link-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-stack {
        position: static;
    }
}

@media (max-width: 720px) {
    .legal-shell {
        width: min(calc(100% - 22px), var(--container));
        padding: 12px 0 42px;
    }

    .legal-hero,
    .hero-panel,
    .section-card,
    .footer-card,
    .form-card {
        padding: 20px;
        border-radius: 24px;
    }

    .sidebar-card,
    .summary-card,
    .link-card,
    .card {
        padding: 16px;
    }

    h1 {
        font-size: clamp(2.15rem, 13vw, 3.35rem);
        line-height: 1.06;
    }

    .lang-bn h1 {
        font-size: clamp(2.05rem, 11.5vw, 3.1rem);
        line-height: 1.12;
    }

    .section-head {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .form-grid .field-span-2 {
        grid-column: auto;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .portal-option {
        grid-template-columns: 1fr;
    }

    .portal-radio {
        display: none;
    }

    .pill,
    .chip,
    .lang-switcher button,
    .button,
    .button-soft,
    .button-danger {
        width: 100%;
    }
}