/* ==========================================================
   LEGAL PAGE
========================================================== */

:root {
    --legal-ink: #1b1b1a;
    --legal-muted: rgba(27, 27, 26, 0.62);
    --legal-line: rgba(27, 27, 26, 0.12);
    --legal-gold: #b98a3d;
    --legal-gold-light: #ddc285;
    --legal-bg: #fbf8f1;
    --legal-white: #ffffff;
    --legal-container: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--legal-ink);
    background: var(--legal-bg);

    font-family:
        "Noto Sans JP",
        sans-serif;

    font-size: 15px;
    line-height: 1.9;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}


/* ==========================================================
   CONTAINER
========================================================== */

.legal-container {
    width:
        min(
            var(--legal-container),
            calc(100% - 96px)
        );

    margin-inline: auto;
}


/* ==========================================================
   HEADER
========================================================== */

.legal-header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;

    background:
        rgba(
            251,
            248,
            241,
            0.9
        );

    border-bottom:
        1px solid
        rgba(
            27,
            27,
            26,
            0.07
        );

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.legal-header__inner {
    width:
        min(
            1280px,
            calc(100% - 64px)
        );

    min-height: 82px;

    margin-inline: auto;

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

    gap: 30px;
}

.legal-header__logo {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.legal-header__logo img {
    width: 108px;
    height: auto;
}

.legal-header__contact {
    min-height: 46px;

    padding:
        0
        18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    color: var(--legal-white);
    background: var(--legal-ink);

    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.legal-header__contact:hover {
    transform: translateY(-2px);
}

.legal-header__contact span {
    color: var(--legal-gold-light);
}


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

.legal-hero {
    position: relative;
    overflow: hidden;

    padding:
        112px
        0
        94px;

    background:
        linear-gradient(
            150deg,
            #fbf8f1 0%,
            #f5ead5 100%
        );

    border-bottom:
        1px solid
        rgba(
            27,
            27,
            26,
            0.08
        );
}

.legal-hero::before {
    content: "";

    position: absolute;
    top: -180px;
    right: -110px;

    width: 480px;
    height: 480px;

    border:
        1px solid
        rgba(
            185,
            138,
            61,
            0.22
        );

    border-radius: 50%;

    pointer-events: none;
}

.legal-hero::after {
    content: "";

    position: absolute;
    right: 100px;
    bottom: -240px;

    width: 420px;
    height: 420px;

    background:
        radial-gradient(
            circle,
            rgba(
                221,
                194,
                133,
                0.23
            ),
            transparent 68%
        );

    pointer-events: none;
}

.legal-hero .legal-container {
    position: relative;
    z-index: 2;
}

.legal-label {
    display: block;

    margin-bottom: 24px;

    color: var(--legal-gold);

    font-family:
        "Zen Kaku Gothic New",
        sans-serif;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.legal-hero h1 {
    margin: 0;

    font-family:
        "Zen Kaku Gothic New",
        "Noto Sans JP",
        sans-serif;

    font-size:
        clamp(
            46px,
            6vw,
            82px
        );

    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.055em;
}

.legal-hero p {
    margin:
        24px
        0
        0;

    color: var(--legal-muted);

    font-size: 14px;
    letter-spacing: 0.08em;
}


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

.legal-content {
    padding:
        100px
        0
        120px;
}

.legal-document {
    max-width: 920px;
}

.legal-lead {
    margin:
        0
        0
        72px;

    padding:
        30px
        32px;

    color:
        rgba(
            27,
            27,
            26,
            0.78
        );

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

    border:
        1px solid
        rgba(
            185,
            138,
            61,
            0.18
        );

    border-radius: 22px;

    box-shadow:
        0
        20px
        50px
        rgba(
            87,
            61,
            20,
            0.06
        );
}


/* ==========================================================
   SECTION
========================================================== */

.legal-section {
    padding:
        0
        0
        58px;

    margin:
        0
        0
        58px;

    border-bottom:
        1px solid
        var(--legal-line);
}

.legal-section:last-of-type {
    margin-bottom: 0;
}

.legal-section h2 {
    position: relative;

    margin:
        0
        0
        26px;

    padding-left: 22px;

    font-family:
        "Zen Kaku Gothic New",
        "Noto Sans JP",
        sans-serif;

    font-size:
        clamp(
            23px,
            2.2vw,
            30px
        );

    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.035em;
}

.legal-section h2::before {
    content: "";

    position: absolute;
    top: 0.25em;
    left: 0;

    width: 4px;
    height: 1.1em;

    background:
        linear-gradient(
            to bottom,
            var(--legal-gold-light),
            var(--legal-gold)
        );

    border-radius: 999px;
}

.legal-section p {
    margin:
        0
        0
        18px;

    color:
        rgba(
            27,
            27,
            26,
            0.74
        );
}

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

.legal-section ul {
    margin:
        22px
        0
        0;

    padding: 0;

    list-style: none;
}

.legal-section li {
    position: relative;

    margin-bottom: 12px;

    padding-left: 22px;

    color:
        rgba(
            27,
            27,
            26,
            0.74
        );
}

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

.legal-section li::before {
    content: "";

    position: absolute;
    top: 0.88em;
    left: 2px;

    width: 6px;
    height: 6px;

    background: var(--legal-gold);

    border-radius: 50%;
}

.legal-section a {
    color: var(--legal-gold);

    font-weight: 600;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}


/* ==========================================================
   COMPANY PROFILE
========================================================== */

.legal-profile {
    margin:
        34px
        0
        0;

    border-top:
        1px solid
        var(--legal-line);
}

.legal-profile > div {
    min-height: 90px;

    display: grid;

    grid-template-columns:
        260px
        minmax(
            0,
            1fr
        );

    border-bottom:
        1px solid
        var(--legal-line);
}

.legal-profile dt,
.legal-profile dd {
    margin: 0;

    display: flex;
    align-items: center;
}

.legal-profile dt {
    padding:
        22px
        24px;

    color:
        rgba(
            27,
            27,
            26,
            0.58
        );

    background:
        rgba(
            185,
            138,
            61,
            0.06
        );

    font-size: 13px;
    font-weight: 600;
}

.legal-profile dd {
    padding:
        22px
        26px;

    color:
        rgba(
            27,
            27,
            26,
            0.82
        );

    font-size: 15px;
}

.legal-profile dd a {
    word-break: break-all;
}


/* ==========================================================
   DATE
========================================================== */

.legal-date {
    margin-top: 48px;

    text-align: right;
}

.legal-date p {
    margin: 0;

    color:
        rgba(
            27,
            27,
            26,
            0.5
        );

    font-size: 12px;
}


/* ==========================================================
   FOOTER
========================================================== */

.legal-footer {
    padding:
        42px
        0;

    color: var(--legal-white);
    background: var(--legal-ink);
}

.legal-footer__inner {
    width:
        min(
            1280px,
            calc(100% - 64px)
        );

    margin-inline: auto;

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

    gap: 30px;
}

.legal-footer__logo {
    display: inline-flex;

    filter:
        brightness(
            0
        )
        invert(
            1
        );

    opacity: 0.92;
}

.legal-footer__logo img {
    width: 102px;
    height: auto;
}

.legal-footer p {
    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.55
        );

    font-size: 10px;
    letter-spacing: 0.08em;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1024px) {

    .legal-container {
        width:
            min(
                860px,
                calc(100% - 56px)
            );
    }

    .legal-header__inner,
    .legal-footer__inner {
        width:
            calc(
                100% - 48px
            );
    }

    .legal-hero {
        padding:
            92px
            0
            78px;
    }

    .legal-content {
        padding:
            82px
            0
            100px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 820px) {

    .legal-container {
        width:
            calc(
                100% - 34px
            );
    }

    .legal-header__inner,
    .legal-footer__inner {
        width:
            calc(
                100% - 34px
            );
    }

    .legal-header__inner {
        min-height: 70px;
    }

    .legal-header__logo img {
        width: 86px;
    }

    .legal-header__contact {
        min-height: 42px;

        padding:
            0
            14px;

        font-size: 10px;
    }

    .legal-hero {
        padding:
            72px
            0
            64px;
    }

    .legal-hero::before {
        top: -120px;
        right: -180px;

        width: 360px;
        height: 360px;
    }

    .legal-label {
        margin-bottom: 18px;

        font-size: 9px;
    }

    .legal-hero h1 {
        font-size:
            clamp(
                37px,
                10.5vw,
                50px
            );

        line-height: 1.25;
    }

    .legal-hero p {
        margin-top: 16px;

        font-size: 12px;
    }

    .legal-content {
        padding:
            64px
            0
            82px;
    }

    .legal-lead {
        margin-bottom: 54px;

        padding:
            23px
            20px;

        border-radius: 18px;

        font-size: 13px;
        line-height: 1.95;
    }

    .legal-section {
        padding-bottom: 44px;
        margin-bottom: 44px;
    }

    .legal-section h2 {
        margin-bottom: 22px;

        padding-left: 18px;

        font-size:
            clamp(
                21px,
                6.2vw,
                26px
            );
    }

    .legal-section h2::before {
        width: 3px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 13px;
        line-height: 1.95;
    }

    .legal-section li {
        padding-left: 19px;
    }

    .legal-profile > div {
        min-height: 0;

        grid-template-columns: 1fr;
    }

    .legal-profile dt {
        padding:
            16px
            15px
            8px;

        background: transparent;

        font-size: 11px;
    }

    .legal-profile dd {
        padding:
            0
            15px
            18px;

        font-size: 13px;
        line-height: 1.85;
    }

    .legal-date {
        margin-top: 38px;
    }

    .legal-footer {
        padding:
            34px
            0;
    }

    .legal-footer__inner {
        flex-direction: column;
        align-items: flex-start;

        gap: 20px;
    }

}