/* ============================================================
   Legal Pages — Terms, Privacy, Refund Policy
   Loaded on page-terms-conditions.php + similar templates
   ============================================================ */

/* ── Layout fix ─────────────────────────────────────────────── */
.page-template-page-terms-conditions .site-content,
.page-template-page-terms-conditions #primary,
.page-template-page-terms-conditions .entry-content,
.page-template-page-privacy-policy .site-content,
.page-template-page-privacy-policy #primary,
.page-template-page-privacy-policy .entry-content,
.page-template-page-refund-policy .site-content,
.page-template-page-refund-policy #primary,
.page-template-page-refund-policy .entry-content,
.page-template-page-shipping-policy .site-content,
.page-template-page-shipping-policy #primary,
.page-template-page-shipping-policy .entry-content {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* Hide GeneratePress entry-header — content carries the title */
.page-template-page-terms-conditions .entry-header,
.page-template-page-privacy-policy .entry-header,
.page-template-page-refund-policy .entry-header,
.page-template-page-shipping-policy .entry-header {
    display: none !important;
}

/* ── Page wrapper ────────────────────────────────────────────── */
.adera-legal-page {
    background: #ffffff;
    padding: 56px 20px 80px;
}

/* ── Single-column layout ────────────────────────────────────── */
.adera-legal-container {
    max-width: var(--site-max-width, 1350px);
    margin: 0 auto;
    padding: 0 20px;
}


/* ════════════════════════════════════════════════════════════
   Main content
════════════════════════════════════════════════════════════ */
.adera-legal-content {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 48px 52px;
    box-shadow: 0 2px 12px rgba(178,178,178,0.10);
}

/* Intro paragraph */
.adera-legal-intro {
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-bottom: 2px solid #f0f1f3;
}

.adera-legal-intro p {
    font-family: var(--font-inter);
    font-size: 15px;
    color: #4a5568;
    line-height: 1.8;
    margin: 0 0 12px;
}

.adera-legal-intro p:last-child { margin-bottom: 0; }

/* Meta block — effective date / company / contact */
.adera-legal-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #F7F3FB;
    border: 1px solid #ebe3f2;
    border-radius: 10px;
}

.adera-legal-meta-row {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

.adera-legal-meta-row strong {
    font-family: var(--font-poppins);
    font-weight: 600;
    color: #494949;
}

.adera-legal-meta-row a { color: #670EAA; text-decoration: none; font-weight: 500; }
.adera-legal-meta-row a:hover { text-decoration: underline; }

.adera-legal-meta-note {
    font-family: var(--font-inter);
    font-size: 12.5px;
    font-style: italic;
    color: #6b6b7a;
    line-height: 1.6;
    margin-top: 4px;
}

/* Sub-heading within a section */
.adera-legal-subhead {
    font-family: var(--font-poppins);
    font-size: 15px;
    font-weight: 700;
    color: #670EAA;
    margin: 20px 0 8px;
}

/* Two-column grid (refund policy) */
.adera-legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.adera-legal-grid .adera-legal-section {
    border-bottom: 1px solid #f0f1f3;
    break-inside: avoid;
}

@media (max-width: 768px) {
    .adera-legal-grid {
        grid-template-columns: 1fr;
    }
}

/* Section */
.adera-legal-section {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #f0f1f3;
    scroll-margin-top: 110px;
}

.adera-legal-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.adera-legal-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-poppins);
    font-size: 17px;
    font-weight: 700;
    color: #494949;
    margin: 0 0 14px;
    line-height: 1.3;
    border: none;
    padding: 0;
}

.adera-legal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(103,14,170,0.08);
    color: #670EAA;
    font-family: var(--font-manrope);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.adera-legal-section p {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #4a5568;
    line-height: 1.8;
    margin: 0 0 10px;
}

.adera-legal-section p:last-child { margin-bottom: 0; }

/* Lists */
.adera-legal-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adera-legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
}

.adera-legal-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #670EAA;
    flex-shrink: 0;
    margin-top: 7px;
    opacity: 0.7;
}

/* Note callout */
.adera-legal-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 14px;
    background: #F7F3FB;
    border: 1px solid #c7d7ff;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 13px;
    color: #3b5bdb;
    line-height: 1.6;
}

.adera-legal-note svg { flex-shrink: 0; color: #3b5bdb; margin-top: 1px; }

/* Contact card */
.adera-legal-contact-card {
    background: #f7f8fa;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adera-legal-contact-brand strong {
    font-family: var(--font-poppins);
    font-size: 15px;
    font-weight: 700;
    color: #494949;
}

.adera-legal-address {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #4a5568;
    line-height: 1.75;
    font-style: normal;
}

.adera-legal-contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adera-legal-contact-details a {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #670EAA;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.adera-legal-contact-details a:hover { opacity: 0.8; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .adera-legal-content { padding: 28px 20px; }
}

@media (max-width: 640px) {
    .adera-legal-page { padding: 36px 0 60px; }
    .adera-legal-container { padding: 0 14px; }
}

@media (max-width: 480px) {
    .adera-legal-section h2 { font-size: 15px; }
    .adera-legal-section p,
    .adera-legal-list li { font-size: 13px; }
}
