/* Aqelith legal and product documents — editorial layout system */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.legal-page, body.site-page {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Legal documents */
body.legal-page {
    min-height: 100vh;
    padding: 0 0 72px;
    color: #263636;
    background: linear-gradient(135deg, rgba(224, 198, 144, 0.22), transparent 32%), #f3f0e9;
    line-height: 1.76;
}
.legal-page .page {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 0;
    display: grid;
    grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
    gap: 28px 44px;
    counter-reset: legal-section;
}
.legal-page .hero {
    position: sticky;
    top: 28px;
    z-index: 2;
    grid-column: 1;
    grid-row: 1 / span 20;
    align-self: start;
    min-height: 650px;
    margin: 0;
    padding: 34px 30px 30px;
    color: #f8f5eb;
    background: radial-gradient(circle at 112% -10%, rgba(218, 180, 103, 0.48), transparent 190px), linear-gradient(160deg, #173c3d 0%, #10292e 64%, #0f2025 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    box-shadow: 0 24px 56px rgba(35, 48, 44, 0.2);
    overflow: hidden;
}
.legal-page .hero::before {
    content: "";
    position: absolute;
    right: -66px;
    bottom: 118px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(236, 210, 154, 0.32);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(236, 210, 154, 0.06), 0 0 0 44px rgba(236, 210, 154, 0.04);
    pointer-events: none;
}
.legal-page .hero::after {
    content: "AQ";
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: rgba(247, 226, 178, 0.2);
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -0.12em;
    pointer-events: none;
}
.legal-page .eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 0 30px;
    padding: 0 11px;
    color: #173838;
    background: #e8c77f;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.legal-page h1 {
    position: relative;
    z-index: 1;
    max-width: 260px;
    margin: 0 0 20px;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4.3vw, 58px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
}
.legal-page .summary {
    position: relative;
    z-index: 1;
    max-width: 280px;
    margin: 0 0 34px;
    color: rgba(244, 241, 228, 0.72);
    font-size: 14px;
    line-height: 1.7;
}
.legal-page .meta-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.legal-page .meta-card {
    min-height: 0;
    padding: 15px 0;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(241, 227, 190, 0.2);
}
.legal-page .meta-label {
    display: block;
    margin: 0 0 5px;
    color: rgba(242, 224, 176, 0.62);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.legal-page .meta-value {
    color: #fffaf0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.legal-page .section {
    position: relative;
    grid-column: 2;
    margin: 0;
    padding: 31px 42px 34px;
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid #e1ddd1;
    border-left: 4px solid #c69b4e;
    border-radius: 4px 22px 22px 4px;
    box-shadow: 0 10px 28px rgba(49, 58, 52, 0.06);
    counter-increment: legal-section;
}
.legal-page .section::before {
    content: counter(legal-section, decimal-leading-zero);
    position: absolute;
    top: 31px;
    right: 38px;
    color: #a78955;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
}
.terms-page .section { border-left-color: #3d7a78; }
.terms-page .section::before { color: #3d7a78; }
.legal-page h2 {
    max-width: calc(100% - 60px);
    margin: 0 0 15px;
    color: #183333;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}
.legal-page p, .legal-page li { color: #53615c; }
.legal-page p { margin: 0 0 15px; }
.legal-page p:last-child, .legal-page ul:last-child { margin-bottom: 0; }
.legal-page ul { margin: 0 0 17px; padding-left: 22px; }
.legal-page li + li { margin-top: 8px; }
.legal-page li::marker { color: #b98d42; }
.legal-page a {
    color: #2d6d70;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 109, 112, 0.34);
    overflow-wrap: anywhere;
}
.legal-page .note {
    margin: 20px 0;
    padding: 18px 20px;
    background: #f4ecda;
    border: 1px solid #e4d4ae;
    border-radius: 3px 14px 14px 3px;
}
.terms-page .note { background: #e3f0ed; border-color: #bfdbd4; }
.legal-page .contact-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 20px 0 18px;
    padding: 0;
    background: #f2eee4;
    border: 1px solid #e1d9c8;
    border-radius: 13px;
    overflow: hidden;
}
.legal-page .contact-card p {
    min-height: 66px;
    margin: 0;
    padding: 14px 16px;
    border-right: 1px solid #e1d9c8;
    border-bottom: 1px solid #e1d9c8;
}
.legal-page .contact-card p:nth-child(even) { border-right: 0; }
.legal-page .contact-card p:nth-last-child(-n + 2) { border-bottom: 0; }
.legal-page .contact-card strong {
    display: block;
    margin-bottom: 3px;
    color: #7c6337;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.terms-page .contact-card { background: #e8f1ee; border-color: #c9ded8; }
.terms-page .contact-card p { border-color: #c9ded8; }
.terms-page .contact-card strong { color: #2d6d70; }
.legal-page hr { height: 1px; margin: 25px 0 0; border: 0; background: #ded9ce; }

/* Product home */
body.site-page {
    min-height: 100vh;
    color: #eaf5f0;
    background: #0c1a21;
    line-height: 1.6;
}
.site-page a { color: inherit; text-decoration: none; }
.site-page .wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.site-page .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(12, 26, 33, 0.76);
    border-bottom: 1px solid rgba(222, 239, 232, 0.13);
    backdrop-filter: blur(18px);
}
.site-page .nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-page .brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #f0d18d;
    font-size: 17px;
    font-weight: 900;
}
.site-page .brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #10252a;
    background: #f0d18d;
    border-radius: 11px 4px 11px 4px;
    font-size: 16px;
    font-weight: 950;
}
.site-page .nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
    color: rgba(235, 246, 240, 0.72);
    font-size: 13px;
    font-weight: 800;
}
.site-page .nav-links a:hover { color: #f0d18d; }
.site-page .nav-button {
    padding: 9px 15px;
    color: #10252a !important;
    background: #f0d18d;
    border-radius: 999px;
}
.site-page .hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 144px 0 84px;
    background: radial-gradient(circle at 78% 28%, rgba(54, 133, 126, 0.33), transparent 280px), linear-gradient(145deg, #102b32 0%, #0c1a21 62%);
    overflow: hidden;
}
.site-page .hero-inner { position: relative; }
.site-page .hero-inner::after {
    content: "AQELITH";
    position: absolute;
    right: -34px;
    top: 50%;
    color: rgba(238, 209, 141, 0.07);
    font-size: clamp(70px, 15vw, 190px);
    font-weight: 950;
    letter-spacing: -0.11em;
    transform: translateY(-50%) rotate(-90deg);
    pointer-events: none;
}
.site-page .kicker {
    display: inline-flex;
    margin-bottom: 24px;
    padding: 7px 11px;
    color: #f0d18d;
    border: 1px solid rgba(240, 209, 141, 0.34);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.site-page h1 {
    max-width: 740px;
    margin: 0 0 22px;
    color: #f4f8f2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(58px, 10vw, 126px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.065em;
}
.site-page .hero-copy { max-width: 540px; margin: 0 0 31px; color: rgba(231, 243, 237, 0.7); font-size: 17px; }
.site-page .hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.site-page .button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(231, 243, 237, 0.2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}
.site-page .button-primary { color: #10252a; background: #f0d18d; border-color: #f0d18d; }
.site-page .button-ghost { color: #e7f3ed; background: rgba(255, 255, 255, 0.04); }
.site-page .summary-band {
    position: relative;
    z-index: 2;
    margin-top: -37px;
    padding: 0;
    background: #f0d18d;
    color: #16343a;
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}
.site-page .summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.site-page .summary-item {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 25px;
    border-right: 1px solid rgba(22, 52, 58, 0.18);
}
.site-page .summary-item:last-child { border-right: 0; }
.site-page .label { margin-bottom: 4px; color: rgba(22, 52, 58, 0.62); font-size: 10px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.site-page .value { font-size: 16px; font-weight: 900; overflow-wrap: anywhere; }
.site-page .section { padding: 112px 0 0; }
.site-page .section-header { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.75fr); gap: 40px; align-items: end; margin-bottom: 30px; }
.site-page h2 { margin: 0; color: #f2f6f0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 5vw, 62px); font-weight: 400; line-height: 0.98; letter-spacing: -0.045em; }
.site-page .section-note { margin: 0; color: rgba(230, 242, 236, 0.6); font-size: 15px; }
.site-page .product-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr); gap: 1px; background: #29434a; border: 1px solid #29434a; border-radius: 22px; overflow: hidden; }
.site-page .product-lead { padding: 34px; background: #14343b; }
.site-page .product-lead p { margin: 0 0 35px; color: rgba(239, 248, 243, 0.75); font-size: 17px; }
.site-page .product-note { max-width: 360px; color: #f0d18d; font-family: Georgia, "Times New Roman", serif; font-size: 31px; line-height: 1.03; }
.site-page .metric-row { display: grid; grid-template-columns: 1fr; gap: 1px; background: #29434a; }
.site-page .metric { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; background: #10282f; }
.site-page .metric strong { color: #f2f6f0; font-size: 17px; }
.site-page .metric span { color: rgba(230, 242, 236, 0.52); font-size: 12px; text-align: right; }
.site-page .info-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.site-page .info-panel { background: #f0d18d; color: #17343a; border-radius: 20px; overflow: hidden; }
.site-page .info-panel:nth-child(2) { background: #14343b; color: #f0f5ef; }
.site-page .info-title { padding: 23px 24px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.site-page .info-row { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 15px; padding: 15px 24px; border-top: 1px solid rgba(22, 52, 58, 0.17); }
.site-page .info-panel:nth-child(2) .info-row { border-top-color: rgba(231, 243, 237, 0.14); }
.site-page .info-row span { color: rgba(22, 52, 58, 0.63); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.site-page .info-panel:nth-child(2) .info-row span { color: rgba(231, 243, 237, 0.56); }
.site-page .info-row strong, .site-page .info-row a { color: inherit; font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.site-page .legal-list { display: grid; gap: 12px; padding: 20px 24px 24px; }
.site-page .legal-link { display: block; padding: 17px; color: #15353b; background: #f0d18d; border-radius: 14px; }
.site-page .legal-link strong { display: block; margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 400; }
.site-page .legal-link span { color: rgba(21, 53, 59, 0.64); font-size: 11px; overflow-wrap: anywhere; }
.site-page .contact-panel { margin-top: 18px; padding: 24px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; color: #15353b; background: #c7e1d5; border-radius: 20px; }
.site-page .contact-panel strong { display: block; margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; line-height: 1.1; }
.site-page .contact-panel span { color: rgba(21, 53, 59, 0.68); }
.site-page .contact-panel a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; color: #f4f8f2; background: #15353b; border-radius: 999px; font-size: 13px; font-weight: 900; overflow-wrap: anywhere; }
.site-page .footer { padding: 68px 0 42px; display: flex; justify-content: space-between; gap: 18px; color: rgba(230, 242, 236, 0.48); font-size: 13px; }
.site-page .footer a { color: #f0d18d; font-weight: 800; overflow-wrap: anywhere; }

@media (max-width: 900px) {
    .legal-page .page { grid-template-columns: 1fr; gap: 18px; }
    .legal-page .hero, .legal-page .section { grid-column: 1; grid-row: auto; }
    .legal-page .hero { position: relative; top: auto; min-height: 0; }
    .site-page .section-header, .site-page .product-panel, .site-page .info-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .legal-page .page, .site-page .wrap { width: min(100% - 28px, 1160px); }
    .legal-page .page { padding-top: 18px; }
    .legal-page .hero { padding: 28px 22px 24px; border-radius: 20px; }
    .legal-page h1 { font-size: 42px; }
    .legal-page .section { padding: 26px 21px 28px; border-radius: 3px 16px 16px 3px; }
    .legal-page .section::before { top: 27px; right: 21px; }
    .legal-page h2 { font-size: 22px; }
    .legal-page .contact-card { grid-template-columns: 1fr; }
    .legal-page .contact-card p, .legal-page .contact-card p:nth-child(even), .legal-page .contact-card p:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid #e1d9c8; }
    .legal-page .contact-card p:last-child { border-bottom: 0; }
    .site-page .nav { min-height: 62px; }
    .site-page .nav-links a:not(.nav-button) { display: none; }
    .site-page .hero { min-height: 82vh; padding-top: 118px; }
    .site-page h1 { font-size: 61px; }
    .site-page .summary-grid { grid-template-columns: 1fr; }
    .site-page .summary-item { min-height: 72px; border-right: 0; border-bottom: 1px solid rgba(22, 52, 58, 0.18); }
    .site-page .summary-item:last-child { border-bottom: 0; }
    .site-page .section { padding-top: 78px; }
    .site-page .section-header { gap: 19px; }
    .site-page .product-lead, .site-page .info-title, .site-page .info-row { padding-left: 20px; padding-right: 20px; }
    .site-page .info-row { grid-template-columns: 1fr; gap: 5px; }
    .site-page .legal-list { padding-left: 20px; padding-right: 20px; }
    .site-page .contact-panel, .site-page .footer { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
}
