/* An-Nikah — policy pages (privacy, terms, refund). Builds on home.css + about.css. */

/* ───────── Banner (compact) ───────── */
.lg-hero__title { max-width: none; }
.lg-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: clamp(18px, 3vh, 28px) 0 0; padding: 0; list-style: none; }
.lg-meta li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(231, 211, 166, .3); background: rgba(255, 255, 255, .06); font-size: .95rem; color: rgba(251, 248, 242, .9); }
.lg-meta svg { color: #e7d3a6; }

/* ───────── Layout: contents + document ───────── */
.lg { background: var(--ah-ivory); }
.lg-layout { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); padding-block: clamp(40px, 6vw, 88px); align-items: start; }

.lg-toc { position: sticky; top: calc(var(--ah-header-h) + 24px); display: grid; gap: 16px; max-height: calc(100vh - var(--ah-header-h) - 48px); overflow: auto; scrollbar-width: thin; }
.lg-toc__box { border-radius: var(--ah-r-lg); background: #fff; border: 1px solid rgba(11, 59, 46, .12); }
.lg-toc__box summary { list-style: none; padding: 18px 20px 6px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-gold-600); cursor: default; }
.lg-toc__box summary::-webkit-details-marker { display: none; }
.lg-toc ol { margin: 0; padding: 6px 10px 14px; list-style: none; }
.lg-toc ol a { display: flex; gap: 12px; align-items: baseline; padding: 9px 10px; border-radius: 10px; font-size: 1rem; line-height: 1.35; color: var(--ah-ink-2); text-decoration: none; transition: background-color .2s, color .2s; }
.lg-toc ol a span { flex: none; font-size: .8rem; font-weight: 700; color: var(--ah-muted); font-variant-numeric: tabular-nums; }
.lg-toc ol a:hover { background: var(--ah-ivory); color: var(--ah-ink); }
.lg-toc ol a.is-current { background: var(--ah-emerald-50); color: var(--ah-emerald); font-weight: 600; box-shadow: inset 3px 0 0 var(--ah-gold); }
.lg-toc ol a.is-current span { color: var(--ah-emerald); }
.lg-related-mini { display: grid; gap: 2px; padding: 0 10px; }
.lg-related-mini a { padding: 6px 10px; border-radius: 8px; font-size: .95rem; color: var(--ah-muted); text-decoration: none; }
.lg-related-mini a:hover { color: var(--ah-emerald); }
.lg-related-mini a[aria-current="page"] { color: var(--ah-emerald); font-weight: 600; }

/* ───────── Document ───────── */
.lg-doc { min-width: 0; }
.lg-summary { margin-bottom: clamp(32px, 4vw, 52px); padding: clamp(22px, 3vw, 34px); border-radius: var(--ah-r-xl); background: linear-gradient(160deg, #fff, #fbf6ec); border: 1px solid rgba(198, 164, 101, .45); }
.lg-summary h2 { font-family: var(--ah-font-display); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); font-weight: 600; color: var(--ah-ink); }
.lg-summary ul { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.lg-summary li { position: relative; padding-left: 32px; font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem); line-height: 1.6; color: var(--ah-ink); }
.lg-summary li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ah-emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7d3a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lg-summary strong { color: var(--ah-emerald); }
.lg-summary p { margin-top: 16px; font-size: .9rem; color: var(--ah-muted); }

.lg-sec { padding-block: clamp(26px, 3vw, 38px); border-top: 1px solid var(--ah-line); scroll-margin-top: calc(var(--ah-header-h) + 20px); }
.lg-summary + .lg-sec { border-top: 0; padding-top: 0; }
.lg-sec h2 { font-family: var(--ah-font-display); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 600; line-height: 1.15; color: var(--ah-ink); }
.lg-sec h3 { margin-top: 22px; font-size: 1.1rem; font-weight: 700; color: var(--ah-ink); }
.lg-sec p { margin-top: 14px; font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem); line-height: 1.75; color: var(--ah-ink-2); }
.lg-sec a { color: var(--ah-emerald); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(15, 92, 70, .3); text-underline-offset: 3px; }
.lg-sec a:hover { text-decoration-color: currentColor; }
.lg-sec strong { color: var(--ah-ink); }

.lg-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.lg-list li { position: relative; padding-left: 26px; font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem); line-height: 1.65; color: var(--ah-ink-2); }
.lg-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--ah-gold); }
.lg-list--x li::before { width: 12px; height: 2px; left: 2px; top: .8em; border-radius: 2px; background: #b4532a; }

.lg-steps { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: st; }
.lg-steps li { position: relative; counter-increment: st; padding: 16px 18px 16px 64px; border-radius: var(--ah-r-md); background: #fff; border: 1px solid var(--ah-line); font-size: clamp(1.02rem, 1rem + .15vw, 1.12rem); line-height: 1.6; color: var(--ah-ink-2); }
.lg-steps li::before { content: counter(st); position: absolute; left: 18px; top: 15px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ah-emerald); color: #e7d3a6; font-weight: 700; }

.lg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.lg-cards > div { padding: 20px; border-radius: var(--ah-r-md); background: #fff; border: 1px solid var(--ah-line); border-top: 3px solid var(--ah-gold); }
.lg-cards h3 { margin: 0; font-size: 1.08rem; }
.lg-cards p { margin-top: 6px; font-size: 1rem; line-height: 1.6; }
.lg-cards--warn > div { border-top-color: #c26a4a; }

.lg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.lg-stats div { padding: 20px 14px; text-align: center; border-radius: var(--ah-r-md); background: var(--ah-forest); }
.lg-stats strong { display: block; font-family: var(--ah-font-display); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 600; line-height: 1; color: #e7d3a6 !important; }
.lg-stats span { display: block; margin-top: 8px; font-size: .95rem; color: rgba(251, 248, 242, .82); }

.lg-table-wrap { margin-top: 18px; overflow-x: auto; border-radius: var(--ah-r-md); border: 1px solid var(--ah-line-strong); background: #fff; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.lg-table th { padding: 13px 18px; text-align: left; background: var(--ah-ivory-2); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ah-gold-600); }
.lg-table td { padding: 13px 18px; border-top: 1px solid var(--ah-line); color: var(--ah-ink-2); line-height: 1.5; vertical-align: top; }
.lg-table td:first-child { font-weight: 600; color: var(--ah-ink); }

.lg-note { padding: 14px 18px; border-radius: var(--ah-r-md); background: var(--ah-emerald-50); font-size: 1rem !important; line-height: 1.6 !important; color: var(--ah-forest) !important; }

.lg-faq { display: grid; gap: 10px; margin-top: 18px; }
.lg-faq details { border-radius: var(--ah-r-md); background: #fff; border: 1px solid var(--ah-line); }
.lg-faq summary { position: relative; padding: 18px 54px 18px 20px; list-style: none; cursor: pointer; font-size: 1.08rem; font-weight: 600; color: var(--ah-ink); }
.lg-faq summary::-webkit-details-marker { display: none; }
.lg-faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ah-emerald); border-bottom: 2px solid var(--ah-emerald); transform: rotate(45deg); transition: transform .25s var(--ah-ease); }
.lg-faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.lg-faq details[open] { border-color: rgba(198, 164, 101, .6); }
.lg-faq details p { margin: 0; padding: 0 20px 18px; }

.lg-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: clamp(24px, 3vw, 40px); padding: clamp(22px, 3vw, 32px); border-radius: var(--ah-r-xl); background: radial-gradient(120% 140% at 0% 0%, #1d7d60 0%, var(--ah-emerald) 35%, var(--ah-forest) 100%); color: #fff; }
.lg-help h2 { font-family: var(--ah-font-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 600; color: #fff !important; }
.lg-help p { margin-top: 6px; color: rgba(251, 248, 242, .82); }
.lg-help__ways { display: flex; flex-wrap: wrap; gap: 10px; }
.lg-help__ways a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(231, 211, 166, .3); color: #fff; font-weight: 600; font-size: .98rem; text-decoration: none; transition: background-color .2s, border-color .2s; }
.lg-help__ways a:hover { background: rgba(231, 211, 166, .16); border-color: var(--ah-gold); }
.lg-help__ways svg { color: #e7d3a6; }

/* ───────── Related policies ───────── */
.lg-more { padding-block: 0 clamp(56px, 7vw, 104px); }
.lg-more__title { margin-bottom: 18px; text-align: center; font-family: var(--ah-font-display); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); font-weight: 600; color: var(--ah-ink); }
.lg-more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lg-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px 24px; border-radius: var(--ah-r-lg); background: #fff; border: 1px solid rgba(11, 59, 46, .16); text-decoration: none; transition: transform .3s var(--ah-ease), border-color .3s, box-shadow .3s; }
.lg-card:hover { transform: translateY(-4px); border-color: var(--ah-gold); box-shadow: 0 0 0 3px rgba(198, 164, 101, .16), 0 22px 40px -24px rgba(6, 37, 25, .4); }
.lg-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ah-emerald-50); color: var(--ah-emerald); }
.lg-card strong { display: block; font-size: 1.15rem; color: var(--ah-ink); }
.lg-card small { display: block; margin-top: 3px; font-size: .95rem; color: var(--ah-muted); }
.lg-card__arrow { color: var(--ah-emerald); transition: transform .25s var(--ah-ease); }
.lg-card:hover .lg-card__arrow { transform: translateX(4px); }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
    .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .lg-toc { position: static; max-height: none; overflow: visible; }
    .lg-toc__box summary { cursor: pointer; padding-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
    .lg-toc__box summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ah-gold-600); border-bottom: 2px solid var(--ah-gold-600); transform: rotate(45deg); transition: transform .25s; }
    .lg-toc__box[open] summary::after { transform: rotate(225deg); }
    .lg-toc__box[open] summary { padding-bottom: 6px; }
    .lg-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg-related-mini { display: none; }
}
@media (max-width: 760px) {
    .lg-toc ol, .lg-cards, .lg-more__grid { grid-template-columns: 1fr; }
    .lg-stats { grid-template-columns: 1fr; }
    .lg-stats div { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 14px; }
    .lg-stats span { margin-top: 0; }
    .lg-steps li { padding-left: 58px; }
    .lg-help__ways, .lg-help__ways a { width: 100%; }
    .lg-table { font-size: .95rem; }
    .lg-table th, .lg-table td { padding: 11px 14px; }
}
@media print {
    .ah-header, .ah-footer, .lg-toc, .lg-more, .lg-help, .whatsapp-container, .cookie-consent { display: none !important; }
    .lg-layout { display: block; padding: 0; }
    .lg-hero { background: none !important; color: #000; }
}
.lg-summary a { color: var(--ah-emerald); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(15, 92, 70, .35); text-underline-offset: 3px; }
