/* ============================================
   POLICY PAGES (Shopping Policies + Shipping)
   Közös stílus — Honnomushi
   ============================================ */

.policy-page {
    background: var(--white);
}

/* ============================================
   HERO
   ============================================ */

.policy-hero {
    background: var(--pink-light);
    position: relative;
    overflow: visible;
}

.policy-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
}

.policy-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--coral);
    margin-bottom: 16px;
}

.policy-hero__eyebrow img {
    height: 14px;
    width: auto;
    /* coral színezés (fekete stroke SVG → coral) */
    filter: brightness(0) saturate(100%) invert(58%) sepia(53%) saturate(1860%) hue-rotate(319deg) brightness(93%) contrast(92%);
}

.policy-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.05;
    margin: 0 0 20px;
}

/* Cím alatti coral vonal */
.policy-hero__rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
}

.policy-hero__rule::before {
    content: '';
    height: 2px;
    width: 56px;
    background: var(--coral);
}

.policy-hero__rule img {
    height: 14px;
    width: auto;
}

.policy-hero__subtitle {
    font-family: 'Monolineboho', cursive;
    font-style: normal;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    color: var(--coral);
    line-height: 1.4;
    margin: 0 0 20px;
}

.policy-hero__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--navy);
    opacity: 0.75;
    line-height: 1.7;
    margin: 0;
    max-width: 420px;
}

.policy-hero__image {
    position: relative;
    z-index: 6;
    /* Full-bleed jobbra: a képernyő jobb széléig fut ki */
    margin-right: calc((100vw - 1280px) / -2 - 40px);
    /* Teteje a menü alá csúszik, alja rálóg a köv. szekcióra */
    margin-top: -90px;
    margin-bottom: -50px;
}

.policy-hero__image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
    border: 12px solid var(--white);
    border-radius: 0 0 0 180px;
    box-shadow: 0 22px 44px rgba(2, 15, 89, 0.16);
}

/* Ha a viewport kisebb mint a konténer, ne fusson ki negatívba */
@media (max-width: 1360px) {
    .policy-hero__image {
        margin-right: 0;
    }
}

/* ============================================
   BODY LAYOUT (sidebar + content)
   ============================================ */

.policy-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 40px 0;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 64px;
    align-items: start;
}

/* ── Sidebar ── */

.policy-sidebar {
    position: sticky;
    top: 100px;
}

.policy-sidebar__deco {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.policy-sidebar__deco img {
    width: auto;
}
.policy-sidebar__deco img:nth-child(1) { height: 48px; }
.policy-sidebar__deco img:nth-child(2) { height: 70px; }
.policy-sidebar__deco img:nth-child(3) { height: 52px; }

.policy-sidebar__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 20px;
}

.policy-sidebar__title img {
    height: 14px;
    width: auto;
}

.policy-nav {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.policy-nav li {
    border-bottom: 1px solid rgba(2, 15, 89, 0.08);
}

.policy-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.policy-nav a:hover {
    color: var(--coral);
    padding-left: 6px;
}

.policy-nav a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(8%) sepia(74%) saturate(3886%) hue-rotate(232deg) brightness(78%) contrast(101%);
    transition: filter 0.2s;
}

.policy-nav a:hover img {
    filter: brightness(0) saturate(100%) invert(58%) sepia(53%) saturate(1860%) hue-rotate(319deg) brightness(93%) contrast(92%);
}

/* ── Sidebar "Have a question" doboz ── */

.policy-help {
    background: var(--pink-light);
    padding: 32px 28px;
    text-align: center;
}

.policy-help__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.policy-help__icon img {
    width: 22px;
    height: 22px;
}

.policy-help__paw {
    filter: brightness(0) saturate(100%) invert(58%) sepia(53%) saturate(1860%) hue-rotate(319deg) brightness(93%) contrast(92%);
}

.policy-help__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 12px;
}

.policy-help__text {
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--navy);
    opacity: 0.7;
    line-height: 1.6;
    margin: 0 0 20px;
}

.policy-help__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white) !important;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 28px;
    text-decoration: none;
    transition: background 0.2s;
}

.policy-help__btn:hover,
.policy-help__btn:focus {
    background: var(--coral);
    color: var(--white) !important;
}

/* ============================================
   CONTENT (Gutenberg the_content)
   ============================================ */

.policy-content {
    min-width: 0;
}

/* h3 = szekció cím, coral számozással automatikusan */
.policy-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 14px;
    padding-top: 8px;
    scroll-margin-top: 100px;
}

/* Az első h3-nak ne legyen felső térköze */
.policy-content > h3:first-child {
    padding-top: 0;
}

/* Szekciók közti elválasztás: minden h3 előtt (kivéve első) vonal + térköz */
.policy-content h3:not(:first-child) {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(2, 15, 89, 0.08);
}

/* A "## " (h2) amit a 1. szekció félreütött — normalizáljuk h3 méretre */
.policy-content h2 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--navy);
    opacity: 0.78;
    line-height: 1.7;
    margin: 0 0 12px;
    text-transform: none;
    letter-spacing: 0;
}

.policy-content p {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--navy);
    opacity: 0.78;
    line-height: 1.7;
    margin: 0 0 12px;
}

.policy-content p strong,
.policy-content strong {
    font-weight: 700;
    opacity: 1;
    color: var(--navy);
}

.policy-content a {
    color: var(--coral);
    text-decoration: underline;
}

.policy-content ul,
.policy-content ol {
    margin: 0 0 16px;
    padding-left: 20px;
}

.policy-content li {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--navy);
    opacity: 0.78;
    line-height: 1.7;
    margin-bottom: 6px;
}

/* Gutenberg táblázat (shipping fees) */
.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
    font-family: var(--font-body);
}

.policy-content table th,
.policy-content table td {
    padding: 10px 14px;
    border: 1px solid rgba(2, 15, 89, 0.1);
    font-size: 0.85rem;
    color: var(--navy);
    text-align: left;
}

.policy-content table th {
    background: var(--pink-light);
    font-weight: 700;
}

/* ============================================
   NEWSLETTER SÁV
   ============================================ */

.policy-newsletter {
    position: relative;
    width: 100%;
    background-color: #1a1f5e;
    margin-top: 72px;
    overflow: hidden;
}

/* Mintás navy háttér (mint a home-on) */
.policy-newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/themes/honnomushi/img/newsletter-bg.png');
    background-size: 1900px auto;
    background-position: center;
    opacity: 0.28;
    z-index: 1;
    pointer-events: none;
}

.policy-newsletter__inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

/* Fehér panel: lekerekített bal él, jobb oldal a viewport széléig (mint a home) */
.policy-newsletter__inner::after {
    content: '';
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 120px;
    right: calc((100vw - 1400px) / -2);
    background: var(--white);
    border-radius: 200px 0 0 200px;
    z-index: -1;
}

.policy-newsletter__left {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.policy-newsletter__icon img {
    height: 92px;
    width: auto;
}

.policy-newsletter__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
}

.policy-newsletter__text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--navy);
    opacity: 0.7;
    line-height: 1.5;
    margin: 0;
}

.policy-newsletter__form {
    display: flex;
    gap: 0;
    min-width: 320px;
}

.policy-newsletter__form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    background: var(--white);
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--navy);
    outline: none;
}

.policy-newsletter__form button {
    background: var(--coral);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s;
}

.policy-newsletter__form button:hover {
    background: var(--navy);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1000px) {
    .policy-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px 56px;
    gap: 0;
}

/* A szöveges blokk menjen a kép ALÁ */
.policy-hero__inner > *:not(.policy-hero__image) {
    order: 2;
    max-width: 680px;
    padding-top: 0;
}

/* A kép jön előre, és jobbra kifut a viewport széléig */
.policy-hero__image {
    order: 1;
    width: calc(100% + 24px);
    max-width: none;
    align-self: flex-end;
    margin: -72px -24px 36px auto;
    z-index: 6;
}

.policy-hero__image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 0 0 0 120px;
    border-width: 8px;
}
    .policy-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .policy-sidebar {
        position: static;
    }
    .policy-sidebar__deco { display: none; }
    /* Newsletter táblagépen: egyszerű full-width fehér kártya, nincs viewport-matek */
    .policy-newsletter__inner {
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 60px 40px;
    }
    .policy-newsletter__inner::after {
        top: 30px;
        bottom: 30px;
        left: 30px;
        right: 30px;
        border-radius: 60px;
    }
    .policy-newsletter__left { flex: none; }
    .policy-newsletter .wpcf7 { margin-left: 0; }
}

@media (max-width: 600px) {
    .policy-hero__inner { padding: 48px 20px; }
    .policy-body { padding: 48px 20px 0; }
    .policy-newsletter__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 44px 24px;
    }
    .policy-newsletter__inner::after {
        top: 18px;
        bottom: 18px;
        left: 14px;
        right: 14px;
        border-radius: 36px;
    }
    .policy-newsletter__left { flex-direction: column; text-align: center; }
    .policy-newsletter__form { width: 100%; min-width: 0; }
    .policy-newsletter .wpcf7 { width: 100%; max-width: 100%; flex: none; }
}
.policy-hero__inner {
    padding: 0 20px 44px;
}

.policy-hero__image {
    width: calc(100% + 20px);
    margin: -56px -20px 30px auto;
}

.policy-hero__image img {
    height: 260px;
    border-radius: 0 0 0 76px;
    border-width: 6px;
}

.policy-hero__title {
    font-size: clamp(2rem, 11vw, 3rem);
}

.policy-hero__desc {
    max-width: 100%;
}
/* ============================================
   FAQ + PRIVACY oldalak (accordion + extra sidebar)
   ============================================ */

/* A cím egységes a többi policy oldallal — az <em> ne legyen coral/dőlt,
   csak sortörést ad (nincs külön kiemelés) */
.faq-page .policy-hero__title em,
.privacy-page .policy-hero__title em {
    font-style: normal;
    color: inherit;
    font-weight: inherit;
}

/* Ezeken az oldalakon nincs mancs+vonal elválasztó (mint az About-nál) */
.faq-page .policy-hero__rule,
.privacy-page .policy-hero__rule {
    display: none;
}

/* Az eyebrow (kis cím) előtti mancs ikon se kell egyik oldalon sem */
.faq-page .policy-hero__eyebrow img,
.privacy-page .policy-hero__eyebrow img {
    display: none;
}

/* Ezeken az oldalakon az alcím sima Raleway navy (nem a kézírásos coral) */
.faq-hero__subtitle,
.privacy-hero__subtitle {
    font-family: var(--font-body) !important;
    font-size: 0.98rem !important;
    color: var(--navy) !important;
    opacity: 0.75;
    line-height: 1.7 !important;
}

/* ── Accordion ── */
.policy-acc__item {
    border-bottom: 1px solid rgba(2, 15, 89, 0.08);
}
.policy-acc__item:first-of-type {
    border-top: 1px solid rgba(2, 15, 89, 0.08);
}

.policy-acc__head {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    padding: 22px 8px;
    font-family: var(--font-body);
}

/* Bal jelölő (sorszám kör FAQ / ikon kör Privacy) */
.policy-acc__marker {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--coral);
    transition: background 0.2s;
}
.policy-acc__marker img {
    width: 18px;
    height: 18px;
    /* coral színezés (fekete stroke SVG → coral) */
    filter: brightness(0) saturate(100%) invert(58%) sepia(53%) saturate(1860%) hue-rotate(319deg) brightness(93%) contrast(92%);
    transition: filter 0.2s;
}
.policy-acc__item.is-open .policy-acc__marker {
    background: var(--coral);
    color: var(--white);
}
/* Nyitott állapotban a kör coral → az ikon fehér */
.policy-acc__item.is-open .policy-acc__marker img {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Cím */
.policy-acc__title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
}

/* Chevron */
.policy-acc__chevron {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--navy);
    opacity: 0.5;
    transition: transform 0.25s, opacity 0.2s;
}
.policy-acc__chevron svg {
    width: 100%;
    height: 100%;
    display: block;
}
.policy-acc__head:hover .policy-acc__chevron {
    opacity: 1;
    color: var(--coral);
}
.policy-acc__item.is-open .policy-acc__chevron {
    transform: rotate(180deg);
    color: var(--coral);
    opacity: 1;
}

/* Test (összecsukható panel) */
.policy-acc__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.policy-acc__panel-inner {
    padding: 0 8px 24px 70px;
}
.policy-acc__panel-inner p {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--navy);
    opacity: 0.8;
    line-height: 1.7;
    margin: 0 0 12px;
}
.policy-acc__panel-inner p:last-child {
    margin-bottom: 0;
}
.policy-acc__panel-inner strong {
    color: var(--navy);
    opacity: 1;
    font-weight: 700;
}
.policy-acc__panel-inner a {
    color: var(--coral);
    text-decoration: none;
}
.policy-acc__panel-inner a:hover {
    text-decoration: underline;
}

/* ── FAQ sidebar features ── */
.faq-features {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.faq-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.faq-feature__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-feature__icon img {
    width: 20px;
    height: 20px;
    /* coral színezés */
    filter: brightness(0) saturate(100%) invert(58%) sepia(53%) saturate(1860%) hue-rotate(319deg) brightness(93%) contrast(92%);
}
.faq-feature__text h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 3px;
}
.faq-feature__text p {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--navy);
    opacity: 0.7;
    line-height: 1.5;
    margin: 0;
}

/* FAQ help CTA gombban ikon */
.policy-help__btn img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    /* fehér ikon a sötét gombon */
    filter: brightness(0) saturate(100%) invert(100%);
}

/* FAQ "Contact Us" gomb: teljes szélesség, középre zárt szöveg */
.faq-page .policy-help__btn {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* ── Privacy "On this page" nav aktív állapot ── */
.privacy-nav li {
    position: relative;
}
.privacy-nav li.is-active a {
    color: var(--coral);
}
.privacy-nav li.is-active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: var(--coral);
    border-radius: 2px;
}

/* Mobil */
@media (max-width: 1000px) {
    .policy-acc__panel-inner {
        padding-left: 54px;
    }
}
@media (max-width: 600px) {
    .policy-acc__head {
        gap: 12px;
        padding: 18px 4px;
    }
    .policy-acc__marker {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .policy-acc__title {
        font-size: 0.98rem;
    }
    .policy-acc__panel-inner {
        padding-left: 46px;
    }
}

/* ============================================
   NEWSLETTER FORM (Contact Form 7) — a home design átvéve
   ============================================ */

/* A CF7 form a newsletter jobb oldalán (a __left mellett) */
.policy-newsletter .wpcf7 {
    position: relative;
    z-index: 3;
    flex: 0 0 360px;
    max-width: 360px;
    margin-left: 40px;
}
.policy-newsletter .wpcf7-form {
    width: 100%;
}
.policy-newsletter .wpcf7-form p {
    margin: 0 0 14px !important;
    padding: 0 !important;
}

.policy-newsletter .wpcf7-form label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px !important;
    line-height: 1.2;
}

/* Szöveg + email mezők — pink-light pill */
.policy-newsletter .wpcf7-form input[type="text"],
.policy-newsletter .wpcf7-form input[type="email"] {
    width: 100%;
    height: 44px;
    padding: 0 18px;
    background: #FCEEF4;
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--navy);
    outline: none;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
}
.policy-newsletter .wpcf7-form input[type="text"]:focus,
.policy-newsletter .wpcf7-form input[type="email"]:focus {
    box-shadow: 0 0 0 2px var(--coral);
}
.policy-newsletter .wpcf7-form input::placeholder {
    color: rgba(2, 15, 89, 0.42);
    font-style: italic;
}

/* Checkbox — coral kör fehér ponttal (mint a home / login) */
.policy-newsletter .wpcf7-checkbox .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 0 !important;
}
.policy-newsletter .wpcf7-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background-color: #FCEEF4;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin: 0;
}
.policy-newsletter .wpcf7-checkbox input[type="checkbox"]:checked {
    background-color: var(--coral);
}
.policy-newsletter .wpcf7-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 50%;
}
.policy-newsletter .wpcf7-checkbox .wpcf7-list-item-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--coral);
}

/* Submit — coral pill */
.policy-newsletter .wpcf7-form input[type="submit"] {
    width: 100%;
    height: 46px;
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px !important;
}
.policy-newsletter .wpcf7-form input[type="submit"]:hover {
    background: var(--navy);
}

/* CF7 visszajelző üzenetek */
.policy-newsletter .wpcf7-response-output {
    font-family: var(--font-body);
    font-size: 0.8rem;
    border-radius: 8px;
    margin: 12px 0 0 !important;
    padding: 10px 14px !important;
}

@media (max-width: 1000px) {
    .policy-newsletter .wpcf7 {
        flex: none;
        width: 100%;
        max-width: 420px;
    }
}
