/* ================================================================
   LEGISLATION PAGE — V2 THEME
================================================================ */

.legislation-page {
    --law-bg: #ffffff;

    --law-soft: #f8f4ef;
    --law-soft-2: #f3eee8;

    --law-border: #eadfd6;
    --law-border-strong: #ddcfc4;

    --law-text: #292522;
    --law-muted: #6f6862;

    --law-accent: #4f9298;
    --law-accent-dark: #39777d;
    --law-accent-soft: #e2f0ef;

    --law-blue: #557c9c;
    --law-blue-dark: #456882;

    color: var(--law-text);
    background: var(--law-bg);
}


.legislation-shell {
    width: min(1040px, 100%);
    margin: 0 auto;
}


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

.legislation-hero {
    position: relative;

    padding:
        72px
        24px
        50px;

    overflow: hidden;

    background: #ffffff;

    text-align: left;

    border-bottom: 0;
}


/* ================================================================
   DOCUMENT DECORATION
================================================================ */

.legislation-hero::before,
.legislation-hero::after {
    content: "";

    position: absolute;

    pointer-events: none;

    border-radius: 26px;
}


/*
 * Πίσω "φύλλο"
 */
.legislation-hero::before {
    top: 32px;
    right: -70px;

    width: 330px;
    height: 420px;

    border:
        1.5px solid
        rgba(85, 124, 156, 0.18);

    transform:
        rotate(8deg);
}


/*
 * Μπροστινό "φύλλο"
 */
.legislation-hero::after {
    top: 88px;
    right: -5px;

    width: 270px;
    height: 350px;

    border:
        1.5px solid
        rgba(79, 146, 152, 0.20);

    transform:
        rotate(-4deg);
}


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

.legislation-hero .legislation-shell {
    position: relative;
    z-index: 2;

    width:
        min(
            1180px,
            100%
        );
}

.legislation-hero-watermark {
    position: absolute;

    top: 50%;
    right: 40px;
    z-index: -1;

    width: clamp(180px, 22vw, 300px);
    height: auto;

    opacity: 0.08;

    transform: translateY(-50%);

    /* Να μην μπλοκάρει κλικ ή επιλογή κειμένου από κάτω. */
    pointer-events: none;
}


.legislation-eyebrow {
    margin:
        0
        0
        17px;

    color:
        var(--law-accent);

    font-size: 12px;

    font-weight: 800;

    line-height: 1;

    letter-spacing:
        0.15em;

    text-transform:
        uppercase;
}


.legislation-title {
    max-width: 850px;

    margin: 0;

    color:
        var(--law-text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            42px,
            5vw,
            68px
        );

    font-weight: 700;

    line-height: 0.99;

    letter-spacing:
        -0.04em;
}


.legislation-intro {
    max-width: 720px;

    margin:
        26px
        0
        0;

    color:
        var(--law-muted);

    font-size: 17px;

    line-height: 1.75;
}


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

@media (max-width: 800px) {

    .legislation-hero {
        padding:
            52px
            20px
            68px;
    }


    .legislation-hero::before {
        width: 250px;
        height: 330px;

        top: 20px;
        right: -130px;
    }


    .legislation-hero::after {
        width: 200px;
        height: 270px;

        top: 75px;
        right: -95px;
    }
    .legislation-hero-watermark {
        right: -20px;
        width: 150px;
        opacity: 0.05;
    }

}


@media (max-width: 620px) {

    .legislation-hero {
        padding:
            44px
            16px
            56px;
    }

    .legislation-title {
        font-size:
            clamp(
                36px,
                11vw,
                48px
            );
    }


    .legislation-intro {
        margin-top: 20px;

        font-size: 15px;

        line-height: 1.65;
    }


    .legislation-hero::before {
        opacity: 0.7;
    }


    .legislation-hero::after {
        opacity: 0.75;
    }

}
/* ================================================================
   LEGISLATION BODY
================================================================ */

.legislation-body {
    position: relative;

    padding:
        50px
        24px
        92px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0,
            #fbfaf8 70px,
            #f8f4ef 180px,
            #f8f4ef 100%
        );
}


/* ================================================================
   ARTICLES WRAPPER
================================================================ */

.legislation-body .legislation-shell {
    display: grid;

    gap: 22px;
}


/* ================================================================
   ARTICLE CARD
================================================================ */

.legislation-card {
    position: relative;

    margin: 0;

    padding:
        38px
        42px
        40px;

    overflow: hidden;

    border:
        1px solid
        var(--law-border);

    border-radius: 22px;

    background:
        rgba(
            255,
            255,
            255,
            0.96
        );

    box-shadow:
        0 14px 38px
        rgba(
            67,
            55,
            46,
            0.05
        );

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


.legislation-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(
            79,
            146,
            152,
            0.30
        );

    box-shadow:
        0 18px 44px
        rgba(
            57,
            119,
            125,
            0.075
        );
}


/*
 * Μικρό "document tab" στην πάνω πλευρά.
 */

.legislation-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 42px;

    width: 64px;
    height: 4px;

    border-radius:
        0
        0
        999px
        999px;

    background:
        var(--law-accent);
}


/*
 * Πολύ απαλό document corner.
 */

.legislation-card::after {
    content: "";

    position: absolute;

    top: -52px;
    right: -52px;

    width: 115px;
    height: 115px;

    border:
        1px solid
        rgba(
            85,
            124,
            156,
            0.08
        );

    border-radius: 22px;

    transform:
        rotate(12deg);

    pointer-events: none;
}


/* ================================================================
   ARTICLE TITLE
================================================================ */

.legislation-card-title {
    position: relative;

    margin:
        0
        0
        24px;

    padding:
        0
        0
        18px;

    border-bottom:
        1px solid
        rgba(
            234,
            223,
            214,
            0.95
        );

    color:
        var(--law-text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            25px,
            2.6vw,
            34px
        );

    font-weight: 700;

    line-height: 1.18;

    letter-spacing:
        -0.025em;
}


.legislation-card-title span {
    display: inline-block;

    margin-left: 7px;

    color:
        var(--law-accent-dark);

    font-family:
        inherit;

    font-size:
        0.62em;

    font-weight: 600;

    letter-spacing: 0;
}


/* ================================================================
   ARTICLE CONTENT
================================================================ */

.legislation-card-content {
    color:
        #4f4944;
}


.legislation-card p {
    margin:
        0
        0
        17px;

    color:
        #4f4944;

    font-size: 15px;

    line-height: 1.82;
}


.legislation-card p:last-child {
    margin-bottom: 0;
}


/* ================================================================
   SUBHEADINGS
================================================================ */

.legislation-subheading {
    margin:
        28px
        0
        13px
        !important;

    color:
        var(--law-accent-dark);

    font-size:
        12px
        !important;

    font-weight: 800;

    line-height: 1.3;

    letter-spacing:
        0.10em;

    text-transform:
        uppercase;
}


/* ================================================================
   QUOTE / LAW EXTRACT
================================================================ */

.legislation-quote {
    position: relative;

    margin:
        26px
        0;

    padding:
        22px
        26px
        22px
        30px;

    border:
        1px solid
        rgba(
            79,
            146,
            152,
            0.18
        );

    border-left:
        4px solid
        var(--law-accent);

    border-radius:
        0
        16px
        16px
        0;

    background:
        linear-gradient(
            135deg,
            #eef6f5 0%,
            #f8faf8 100%
        );

    color:
        #514a45;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;

    font-style: italic;

    line-height: 1.8;
}


.legislation-quote strong {
    color:
        var(--law-text);

    font-style: normal;
}


/* ================================================================
   LISTS
================================================================ */

.legislation-list {
    display: grid;

    gap: 10px;

    margin:
        0
        0
        20px;

    padding: 0;

    list-style: none;
}


.legislation-list li {
    position: relative;

    padding:
        14px
        18px
        14px
        48px;

    border:
        1px solid
        rgba(
            234,
            223,
            214,
            0.95
        );

    border-radius:
        13px;

    color:
        #48413c;

    background:
        #fbfaf8;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.5;
}


.legislation-list li::before {
    content: "§";

    position: absolute;

    top: 50%;
    left: 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    color:
        var(--law-accent-dark);

    font-family:
        Georgia,
        serif;

    font-size: 17px;

    font-weight: 700;

    transform:
        translateY(-50%);
}


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

@media (max-width: 700px) {

    .legislation-body {
        padding:
            52px
            16px
            68px;
    }


    .legislation-card {
        padding:
            28px
            22px
            30px;

        border-radius:
            18px;
    }


    .legislation-card::before {
        left: 22px;
    }


    .legislation-card-title {
        margin-bottom: 20px;
    }


    .legislation-quote {
        padding:
            18px
            18px
            18px
            22px;
    }

}
/* ================================================================
   LEGAL Q&A CALLOUT
================================================================ */

.legislation-callout {
    position: relative;

    margin:
        30px
        0
        6px;

    padding:
        25px
        26px
        25px
        28px;

    overflow: hidden;

    border:
        1px solid
        rgba(79, 146, 152, 0.20);

    border-radius:
        18px;

    background:
        linear-gradient(
            135deg,
            #eef6f5 0%,
            #f8faf8 55%,
            #fbf8f4 100%
        );

    box-shadow:
        0 10px 28px
        rgba(57, 119, 125, 0.045);
}


/*
 * Κάθετη λεπτομέρεια σαν σημείωση εγγράφου.
 */
.legislation-callout::before {
    content: "";

    position: absolute;

    top: 20px;
    bottom: 20px;
    left: 0;

    width: 4px;

    border-radius:
        0
        999px
        999px
        0;

    background:
        var(--law-accent);
}


/*
 * Απαλό "σφραγιδάκι" στο background.
 */
.legislation-callout::after {
    content: "§";

    position: absolute;

    right: 22px;
    bottom: -18px;

    color:
        rgba(85, 124, 156, 0.055);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 94px;

    font-weight: 700;

    line-height: 1;

    pointer-events: none;
}


/* ================================================================
   QUESTION
================================================================ */

.legislation-callout-question {
    position: relative;
    z-index: 2;

    margin:
        0
        0
        15px
        !important;

    color:
        var(--law-text)
        !important;

    font-size:
        15px
        !important;

    font-weight:
        800;

    line-height:
        1.6
        !important;
}


/* ================================================================
   ANSWER
================================================================ */

.legislation-callout-answer {
    position: relative;
    z-index: 2;

    margin:
        0
        !important;

    color:
        #5f5852
        !important;

    font-size:
        14px
        !important;

    line-height:
        1.75
        !important;
}


/* ================================================================
   LABEL
================================================================ */

.legislation-callout-label {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-right: 10px;

    padding:
        5px
        10px;

    border:
        1px solid
        rgba(79, 146, 152, 0.22);

    border-radius:
        999px;

    color:
        var(--law-accent-dark);

    background:
        rgba(255, 255, 255, 0.72);

    font-size:
        10px;

    font-weight:
        800;

    line-height:
        1;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;

    vertical-align:
        2px;
}


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

@media (max-width: 700px) {

    .legislation-callout {
        padding:
            21px
            20px
            22px
            23px;

        border-radius:
            16px;
    }


    .legislation-callout::after {
        right: 12px;

        font-size:
            72px;
    }

}

/* ================================================================
   CONTACT + LINKS
================================================================ */

.legislation-contact {
    margin-top: 10px !important;

    padding:
        18px
        20px;

    border:
        1px solid
        var(--law-border);

    border-radius:
        14px;

    color:
        var(--law-muted);

    background:
        var(--law-soft);

    font-size:
        14px
        !important;

    line-height:
        1.7;
}


.legislation-link {
    color:
        var(--law-accent-dark);

    font-weight:
        700;

    text-decoration:
        underline;

    text-decoration-thickness:
        1px;

    text-underline-offset:
        3px;

    transition:
        color 0.2s ease;
}


.legislation-link:hover {
    color:
        var(--law-blue-dark);
}


/* ================================================================
   LEGISLATION FAQ
================================================================ */

.legislation-page .faq-section {
    position: relative;

    padding:
        92px
        24px
        104px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f8f4ef 0%,
            #f5f1ec 100%
        );
}


/* ================================================================
   LEGAL DECORATION
================================================================ */

.legislation-page .faq-section::before {
    content: "§";

    position: absolute;

    top: 28px;
    left: calc(50% - 570px);

    color:
        rgba(85, 124, 156, 0.07);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 150px;

    font-weight: 700;

    line-height: 1;

    pointer-events: none;
}


.legislation-page .faq-section::after {
    content: "";

    position: absolute;

    top: 95px;
    bottom: 95px;
    left: calc(50% - 535px);

    width: 1px;

    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(79, 146, 152, 0.16) 15%,
            rgba(79, 146, 152, 0.16) 85%,
            transparent 100%
        );

    pointer-events: none;
}


/* ================================================================
   FAQ SHELL
================================================================ */

.legislation-page .faq-shell {
    position: relative;
    z-index: 2;

    width:
        min(
            1040px,
            100%
        );

    margin:
        0
        auto;
}


/* ================================================================
   FAQ HEADING
================================================================ */

.legislation-page .faq-heading {
    max-width: 760px;

    margin:
        0
        0
        38px;

    text-align: left;
}


.legislation-page .faq-heading h2 {
    margin: 0;

    color:
        var(--law-text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            34px,
            4vw,
            50px
        );

    font-weight: 700;

    line-height: 1.08;

    letter-spacing:
        -0.035em;
}


.legislation-page .faq-heading p {
    max-width: 660px;

    margin:
        16px
        0
        0;

    color:
        var(--law-muted);

    font-size: 15px;

    line-height: 1.7;
}


/* ================================================================
   FAQ LIST PANEL
================================================================ */

.legislation-page .faq-list {
    display: grid;

    gap: 10px;

    padding:
        24px;

    border:
        1px solid
        var(--law-border);

    border-radius:
        24px;

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    box-shadow:
        0 16px 42px
        rgba(67, 55, 46, 0.055);
}


/* ================================================================
   FAQ ITEM
================================================================ */

.legislation-page .faq-item {
    overflow: hidden;

    border:
        1px solid
        #e9e0d8;

    border-radius:
        15px;

    background:
        #ffffff;

    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}


.legislation-page .faq-item.is-open {
    border-color:
        rgba(
            79,
            146,
            152,
            0.42
        );

    background:
        #fcfefe;

    box-shadow:
        0 9px 24px
        rgba(
            57,
            119,
            125,
            0.065
        );
}


/* ================================================================
   FAQ QUESTION
================================================================ */

.legislation-page .faq-question {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 22px;

    width: 100%;

    min-height: 68px;

    padding:
        16px
        17px
        16px
        20px;

    border: 0;

    color:
        #39332f;

    background:
        transparent;

    font-family:
        inherit;

    font-size: 15px;

    font-weight: 750;

    line-height: 1.45;

    text-align: left;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.legislation-page .faq-question:hover {
    color:
        var(--law-accent-dark);
}


.legislation-page .faq-item.is-open
.faq-question {
    color:
        var(--law-accent-dark);

    background:
        rgba(
            226,
            240,
            239,
            0.22
        );
}


/* ================================================================
   PLUS / MINUS
================================================================ */

.legislation-page .faq-question-icon {
    display: inline-flex;

    flex:
        0
        0
        auto;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border:
        1px solid
        rgba(
            79,
            146,
            152,
            0.25
        );

    border-radius: 10px;

    color:
        var(--law-accent-dark);

    background:
        var(--law-accent-soft);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 18px;

    font-weight: 400;

    line-height: 1;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.25s ease;
}


.legislation-page .faq-item.is-open
.faq-question-icon {
    color: #ffffff;

    border-color:
        var(--law-accent);

    background:
        var(--law-accent);

    transform:
        rotate(180deg);
}


/* ================================================================
   FAQ ANSWER
================================================================ */

.legislation-page .faq-answer {
    border-top:
        1px solid
        rgba(
            234,
            223,
            214,
            0.85
        );
}


.legislation-page .faq-answer[hidden] {
    display: none;
}


.legislation-page .faq-answer-inner {
    padding:
        20px
        21px
        23px;

    color:
        #625b55;

    background:
        rgba(
            248,
            244,
            239,
            0.42
        );

    font-size: 14px;

    line-height: 1.8;
}


.legislation-page .faq-answer-inner a {
    color:
        var(--law-accent-dark);

    font-weight: 700;

    text-decoration: underline;

    text-underline-offset: 3px;
}


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

@media (max-width: 700px) {

    .legislation-page .faq-section {
        padding:
            68px
            16px
            76px;
    }


    .legislation-page .faq-section::before {
        left: auto;
        right: -15px;

        font-size: 100px;
    }


    .legislation-page .faq-section::after {
        display: none;
    }


    .legislation-page .faq-heading {
        margin-bottom: 28px;
    }


    .legislation-page .faq-list {
        padding: 15px;

        border-radius: 19px;
    }


    .legislation-page .faq-question {
        min-height: 62px;

        padding: 14px;

        font-size: 14px;
    }


    .legislation-page .faq-answer-inner {
        padding: 17px;

        font-size: 13px;
    }

}


/* ================================================================
   HERO DOCUMENT + STAMP
================================================================ */

/* Τα παλιά «φύλλα» του hero κρύβονται: τον ρόλο τους τον παίρνει πλέον το έγγραφο. */
.legislation-hero::before,
.legislation-hero::after {
    display: none;
}

.legislation-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 56px;
}

.legislation-hero-doc {
    position: relative;
    width: 420px;
    height: 440px;
}

/* Πίσω φύλλο: δίνει βάθος, σαν στοίβα εγγράφων. */
.legislation-doc-back {
    position: absolute;
    top: 30px;
    left: 110px;
    width: 290px;
    height: 380px;
    border: 1.5px solid rgba(85, 124, 156, 0.22);
    border-radius: 20px;
    background: #fbfaf8;
    transform: rotate(7deg);
}

/* Το έγγραφο: λευκή κάρτα με teal λάμψη, όπως η φωτογραφία στα Γραφεία. */
.legislation-doc {
    position: absolute;
    top: 20px;
    left: 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
    height: 390px;
    box-sizing: border-box;
    padding: 28px 28px 24px;
    border: 1px solid var(--law-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 0 0 1px rgba(79, 146, 152, 0.12),
        0 0 40px rgba(79, 146, 152, 0.22),
        0 18px 40px rgba(41, 60, 90, 0.10);
    transform: rotate(-3deg);
    /* Μικρό «τίναγμα» τη στιγμή που προσγειώνεται η σφραγίδα. */
    animation: law-doc-bump 0.35s ease-out 2.1s both;
}

.legislation-doc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.legislation-doc-section {
    color: var(--law-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.legislation-doc-badge {
    padding: 5px 10px;
    border: 1px solid rgba(79, 146, 152, 0.25);
    border-radius: 999px;
    color: var(--law-accent-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Μέχρι 2 γραμμές: οι τίτλοι άρθρων διαφέρουν σε μήκος ανά χώρα. */
.legislation-doc-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--law-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.legislation-doc-subtitle {
    color: var(--law-muted);
    font-size: 13px;
    line-height: 1.4;
}

/* Αχνές γραμμές «κειμένου» του εγγράφου. */
.legislation-doc-lines {
    display: grid;
    gap: 9px;
    padding-top: 6px;
}

.legislation-doc-lines span {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: #efe9e3;
}

.legislation-doc-lines span:nth-child(1) { width: 100%; }
.legislation-doc-lines span:nth-child(2) { width: 92%; }
.legislation-doc-lines span:nth-child(3) { width: 97%; }
.legislation-doc-lines span:nth-child(4) { width: 72%; }
.legislation-doc-lines span:nth-child(5) { width: 88%; }
.legislation-doc-lines span:nth-child(6) { width: 58%; }

/* Υπογραφή κάτω αριστερά: το margin-top:auto την κρατά στη βάση του εγγράφου. */
.legislation-doc-signature {
    display: grid;
    gap: 4px;
    width: 150px;
    margin-top: auto;
    padding-bottom: 4px;
    border-bottom: 1px solid #ddd4cc;
    color: var(--law-accent-dark);
}

.legislation-doc-signature svg {
    width: 140px;
    height: 34px;
}

.legislation-doc-signature span {
    color: #8a827c;
    font-size: 10px;
}

/* Η σφραγίδα: διπλό περίγραμμα (συμπαγές έξω, διακεκομμένο μέσα) σαν πραγματική σφραγίδα. */
.legislation-doc-stamp {
    position: absolute;
    top: 263px;
    left: 232px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    box-sizing: border-box;
    border: 3px solid rgba(57, 119, 125, 0.85);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: rotate(-14deg);
    /* Πέφτει από ψηλά μία φορά. both: μένει κρυμμένη πριν ξεκινήσει και ορατή μετά. */
    animation: law-stamp-drop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) 1.2s both;
}

.legislation-doc-stamp-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 98px;
    height: 98px;
    box-sizing: border-box;
    border: 1.5px dashed rgba(57, 119, 125, 0.7);
    border-radius: 50%;
    color: var(--law-accent-dark);
    text-align: center;
}

.legislation-doc-stamp-inner svg {
    width: 24px;
    height: 24px;
}

.legislation-doc-stamp-inner span {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes law-stamp-drop {
    0%   { opacity: 0; transform: rotate(-14deg) scale(2.3); }
    75%  { opacity: 1; transform: rotate(-14deg) scale(0.92); }
    100% { opacity: 1; transform: rotate(-14deg) scale(1); }
}

@keyframes law-doc-bump {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    40%      { transform: rotate(-3deg) translateY(3px); }
}

/* Όσοι έχουν ζητήσει λιγότερη κίνηση: η σφραγίδα είναι απλώς εκεί, χωρίς πτώση. */
@media (prefers-reduced-motion: reduce) {
    .legislation-doc,
    .legislation-doc-stamp {
        animation: none;
    }
}

/* Tablet: το έγγραφο πάει κάτω από το κείμενο, στο κέντρο. */
@media (max-width: 900px) {
    .legislation-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .legislation-hero-doc {
        justify-self: center;
    }
}

/* Κινητό: μικρότερο έγγραφο για να χωράει στην οθόνη χωρίς να κόβεται. */
@media (max-width: 520px) {
    .legislation-hero-doc {
        width: 320px;
        height: 360px;
    }

    .legislation-doc-back {
        top: 24px;
        left: 70px;
        width: 230px;
        height: 310px;
    }

    .legislation-doc {
        top: 14px;
        left: 20px;
        width: 250px;
        height: 320px;
        padding: 22px 20px 18px;
    }

    .legislation-doc-title {
        font-size: 18px;
    }

    .legislation-doc-stamp {
        top: 220px;
        left: 174px;
        width: 90px;
        height: 90px;
    }

    .legislation-doc-stamp-inner {
        width: 75px;
        height: 75px;
    }

    .legislation-doc-stamp-inner svg {
        width: 20px;
        height: 20px;
    }

    .legislation-doc-stamp-inner span {
        font-size: 10px;
    }
}