@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&family=Noto+Serif+SC:wght@300;400;600;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');



        body {
            margin: 0;
            padding: 30px 10px;
            background-color: #f1f1f1ee;
            /* background-color: #f1f1f1ee; */
            /* background-color: #05050514; */
            /* background-image: 
                radial-gradient(circle at 50% 50%, rgba(211, 211, 211, 0.27) 40%, rgba(5, 5, 5, 0.257) 100%); */
            color: #d4cfc5; 
            font-family: 'Noto Serif SC', 'Times New Roman', serif;
            display: flex;
            justify-content: center;
            align-items: center;
        }


        .contract-paper {
            position: relative;
            max-width: 800px;
            width: 100%;
            background-image: 
                radial-gradient(circle at 50% 50%, rgba(30, 30, 30, 0.436) 40%, rgba(5, 5, 5, 0.257) 100%);
            padding: 20px 50px;
            box-sizing: border-box;
            border: 1px solid rgba(188, 178, 170, 0.3);
            outline: 3px double rgba(212, 207, 197, 0.1);
            outline-offset: -10px;
            /* box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.9); */
            overflow: hidden;
        }

        .contract-paper::before {
            content: '♦ ―――――――――――――――― ✠ ―――――――――――――――― ♦';
            display: block;
            text-align: center;
            color: #e4d5ca;
            letter-spacing: 2px;
            margin-bottom: 30px;
            opacity: 0.7;
        }

        .title-section { text-align: center; margin-bottom: 30px; }

        .title-sub {
            font-family: 'Courier Prime', monospace;
            font-size: 8px;
            color: #e4d5ca;
            letter-spacing: 4px;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .title-main {
            font-size: 16px;
            font-weight: 900;
            /* letter-spacing: 1px; */
            text-transform: uppercase;
            color: #ffffff;
            margin: 0;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
        }

        .temporal-axis {
            text-align: center;
            font-family: 'Courier Prime', monospace;
            font-size: 11px;
            color: #e8e0c0;
            /* color: #f2dd92; */
            margin-bottom: 10px;
            letter-spacing: 1px;
            opacity: 0.85;
        }
        .temporal-axis span {
            color: #d4cfc5;
            margin: 0 10px;
        }

        .preamble {
            font-style: italic;
            font-weight: 300;
            font-size: 12px;
            line-height: 1.7;
            text-align: center;
            margin-bottom: 40px;
            /* padding: 0 20px; */
            /* border-left: 2px solid hsl(24, 3%, 62%); */
            color: #c6c5c0;
        }
        .page-container {
            position: relative;
            min-height: 280px;
        }
        .page {
            display: none;
            animation: fadeIn 0.8s ease-in-out;
        }
        .page.active { display: block; }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .maxim-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .maxim-item {
            margin-bottom: 25px;
            line-height: 1.2;
        }
        .maxim-number {
            display: block;
            font-family: 'Courier Prime', monospace;
            font-size: 12px;
            color: #e4d5ca;
            margin-bottom: 0px;
            font-weight: bold;
        }
        .maxim-title {
            font-size: 13px;
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 2px;
            display: inline-block;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            padding-bottom: 2px;
        }
        .maxim-content { text-align: justify; font-size: 12px; }

        .pagination-controls {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-top: 20px;
            font-family: 'Courier Prime', monospace;
            font-size: 10px;
            color: #cacac8;
        }
        .page-btn {
            background: none;
            border: none;
            color: #e4d5ca;
            cursor: pointer;
            font-size: 14px;
            padding: 0 8px;
            transition: text-shadow 0.1s, transform 0.1s;
            opacity: 0.7;
        }
        .page-btn:hover {
            opacity: 1;
            text-shadow: 0 0 8px rgba(228, 213, 202, 0.8);
            transform: scale(1.2);
        }
        .page-indicator { margin: 0 15px; letter-spacing: 2px; }

        .signature-section {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-top: 40px;
            padding-top: 30px;
            border-top: 1px dashed rgba(212, 207, 197, 0.375);
        }

        .sign-box { display: flex; flex-direction: column; align-items: center; }

        .sign-label {
            font-family: 'Courier Prime', monospace;
            font-size: 10px;
            color: #c0bbbb;
            margin-bottom: 15px;
            letter-spacing: 2px;
        }

        
        .sign-line {
            width: 180px;
            border-bottom: 1px solid #d4cfc5;
            text-align: center;
            /* font-family: 'Brush Script MT', cursive, 'Noto Serif SC';
            font-family: Georgia, 'Times New Roman', Times, serif; */
            font-family: 'Pinyon Script', cursive;
            font-size: 20px;
            /* font-size: 18px; */
            color: #ffffff;
            padding-bottom: 0px;
        }
        .seal {
            width: 70px;
            height: 70px;
            border: 3px double #f2cc92;
            /* border: 3px double #f2a092; */
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #f2cc92;
            font-weight: 900;
                font-size: 11px;
                text-align: center;
                letter-spacing: 2px;
                transform: rotate(-15deg);
                text-transform: uppercase;
            opacity: 0.8;
            box-shadow: 0 0 15px rgba(242, 160, 146, 0.2) inset;
            user-select: none;
        }

        .history-section {
            margin-top: 50px;
            padding-top: 30px;
            border-top: 1px double rgba(138, 88, 28, 0.3);
        }
        .history-title {
            text-align: center;
            font-size: 12px;
            color: #e4d5ca;
            letter-spacing: 4px;
            margin-bottom: 20px;
        }
        .history-list {
            font-size: 11px;
            font-family: 'Courier Prime', monospace, 'Noto Serif SC';
            color: #c2bfb9;
            line-height: 2;
        }
        .history-item {
            display: flex;
            justify-content: space-between;
            border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
            padding: 5px 0;
        }
        .history-item.active {
            color: #ede4cdd2;
            font-weight: bold;
        }
        .history-status { text-transform: uppercase; }

        @media (max-width: 600px) {
            .contract-paper { padding: 30px 15px; }
            .signature-section { flex-direction: column; gap: 30px; align-items: center; }
            .history-item { flex-direction: column; text-align: center; }
        }